Aktualisieren von Account.php

This commit is contained in:
2025-06-17 09:46:29 +02:00
committed by GitHub
parent abd1beead7
commit c867f0acc6

View File

@@ -4,12 +4,6 @@ namespace Afosto\Acme\Data;
class Account class Account
{ {
/**
* @var array
*/
protected $contact;
/** /**
* @var string * @var string
*/ */
@@ -34,12 +28,10 @@ class Account
* @param string $accountURL * @param string $accountURL
*/ */
public function __construct( public function __construct(
array $contact,
\DateTime $createdAt, \DateTime $createdAt,
bool $isValid, bool $isValid,
string $accountURL string $accountURL
) { ) {
$this->contact = $contact;
$this->createdAt = $createdAt; $this->createdAt = $createdAt;
$this->isValid = $isValid; $this->isValid = $isValid;
$this->accountURL = $accountURL; $this->accountURL = $accountURL;
@@ -72,15 +64,6 @@ class Account
return $this->accountURL; return $this->accountURL;
} }
/**
* Return contact data
* @return array
*/
public function getContact(): array
{
return $this->contact;
}
/** /**
* Returns validation status * Returns validation status
* @return bool * @return bool