added encryption support

This commit is contained in:
tracer 2022-09-21 16:02:42 +02:00
parent 3bc232ef0b
commit 3c09b4038d
1 changed files with 141 additions and 122 deletions

View File

@ -7,128 +7,147 @@ namespace App\Entity;
*/ */
class Panel class Panel
{ {
private int $id; /**
private String $name; * @param string $name
private String $a; * @param int $id
private String $aaaa; * @param string $a
private String $apikey; * @param string $aaaa
private int $self; * @param string $apikey
* @param string $apikeyPrefix
* @param string $self
*/
public function __construct(
/** private string $name,
* @param String $name private int $id = 0,
* @param int $id private string $a = '',
* @param String $a private string $aaaa = '',
* @param String $aaaa private string $apikey = '',
* @param String $apikey private string $apikeyPrefix = '',
* @param int $self private string $self = 'no',
*/ )
public function __construct(String $name, int $id = 0, String $a = '', String $aaaa = '', String $apikey = '', int $self = 0) {}
{
$this->id = $id;
$this->name = $name;
$this->a = $a;
$this->aaaa = $aaaa;
$this->apikey = $apikey;
$this->self = $self;
}
/**
* @return int
*/
public function getSelf(): int
{
return $this->self;
}
/**
* @param int $self
*/
public function setSelf(int $self): void
{
$this->self = $self;
}
/**
* @return String
*/
public function getA(): string
{
return $this->a;
}
/** /**
* @return String * @return string
*/ */
public function getAaaa(): string public function getName(): string
{ {
return $this->aaaa; return $this->name;
} }
/** /**
* @return String * @param string $name
*/ */
public function getApikey(): string public function setName(string $name): void
{ {
$this->name = $name;
}
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
/**
* @return string
*/
public function getA(): string
{
return $this->a;
}
/**
* @return string
*/
public function getSelf(): string
{
return $this->self;
}
/**
* @param string $self
*/
public function setSelf(string $self): void
{
$this->self = $self;
}
/**
* @return string
*/
public function getAaaa(): string
{
return $this->aaaa;
}
/**
* @return string
*/
public function getApikey(): string
{
return $this->apikey; return $this->apikey;
} }
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
/**
* @return String
*/
public function getName(): string
{
return $this->name;
}
/** /**
* @param String $apikey * @param string $apikey
*/ */
public function setApikey(string $apikey): void public function setApikey(string $apikey): void
{ {
$this->apikey = $apikey; $this->apikey = $apikey;
} }
/**
* @param String $name
*/
public function setName(string $name): void
{
$this->name = $name;
}
/** /**
* @param String $a * @param string $a
*/ */
public function setA(string $a): void public function setA(string $a): void
{ {
$this->a = $a; $this->a = $a;
} }
/** /**
* @param String $aaaa * @param string $aaaa
*/ */
public function setAaaa(string $aaaa): void public function setAaaa(string $aaaa): void
{ {
$this->aaaa = $aaaa; $this->aaaa = $aaaa;
} }
/**
* @return string
*/
public function getApikeyPrefix(): string
{
return $this->apikeyPrefix;
}
/**
* @param string $apikeyPrefix
*/
public function setApikeyPrefix(string $apikeyPrefix): void
{
$this->apikeyPrefix = $apikeyPrefix;
}
} }