Send email to the admin when a new patron joins

This commit is contained in:
Alex Cabal 2022-07-09 12:26:32 -05:00
parent e2a1dbb1e5
commit fa8fa4f7eb
5 changed files with 70 additions and 0 deletions

View file

@ -2,12 +2,32 @@
use Ramsey\Uuid\Uuid;
use Safe\DateTime;
/**
* @property Array<Payment> $Payments
*/
class User extends PropertiesBase{
public $UserId;
public $Name;
public $Email;
public $Created;
public $Uuid;
protected $_Payments = null;
// *******
// GETTERS
// *******
/**
* @return array<Payment>
*/
protected function GetPayments(): array{
if($this->_Payments === null){
$this->_Payments = Db::Query('select * from Payments where UserId = ? order by Created desc', [$this->UserId], 'Payment');
}
return $this->_Payments;
}
// *******