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
* @param String $name */
* @param int $id public function __construct(
* @param String $a
* @param String $aaaa private string $name,
* @param String $apikey private int $id = 0,
* @param int $self private string $a = '',
*/ private string $aaaa = '',
public function __construct(String $name, int $id = 0, String $a = '', String $aaaa = '', String $apikey = '', int $self = 0) private string $apikey = '',
{ private string $apikeyPrefix = '',
$this->id = $id; private string $self = 'no',
$this->name = $name; )
$this->a = $a; {}
$this->aaaa = $aaaa;
$this->apikey = $apikey;
$this->self = $self;
} /**
* @return string
/** */
* @return int public function getName(): string
*/ {
public function getSelf(): int return $this->name;
{ }
return $this->self;
} /**
* @param string $name
/** */
* @param int $self public function setName(string $name): void
*/ {
public function setSelf(int $self): void $this->name = $name;
{ }
$this->self = $self;
} /**
* @return int
*/
/** public function getId(): int
* @return String {
*/ return $this->id;
public function getA(): string }
{
return $this->a; /**
} * @param int $id
*/
/** public function setId(int $id): void
* @return String {
*/ $this->id = $id;
public function getAaaa(): string }
{
return $this->aaaa; /**
} * @return string
*/
/** public function getA(): string
* @return String {
*/ return $this->a;
public function getApikey(): string }
{
/**
* @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 * @param string $apikey
{ */
return $this->id; public function setApikey(string $apikey): void
} {
$this->apikey = $apikey;
/** }
* @param int $id
*/
public function setId(int $id): void
{ /**
$this->id = $id; * @param string $a
} */
public function setA(string $a): void
/** {
* @return String $this->a = $a;
*/ }
public function getName(): string
{ /**
return $this->name; * @param string $aaaa
} */
public function setAaaa(string $aaaa): void
{
/** $this->aaaa = $aaaa;
* @param String $apikey }
*/
public function setApikey(string $apikey): void
{ /**
$this->apikey = $apikey; * @return string
} */
public function getApikeyPrefix(): string
{
/** return $this->apikeyPrefix;
* @param String $name }
*/
public function setName(string $name): void /**
{ * @param string $apikeyPrefix
$this->name = $name; */
} public function setApikeyPrefix(string $apikeyPrefix): void
{
/** $this->apikeyPrefix = $apikeyPrefix;
* @param String $a }
*/
public function setA(string $a): void
{
$this->a = $a;
}
/**
* @param String $aaaa
*/
public function setAaaa(string $aaaa): void
{
$this->aaaa = $aaaa;
}
} }