Update PropertiesBase to new patterns and improve static analysis checks

This commit is contained in:
Alex Cabal 2022-06-30 13:23:05 -05:00
parent 5f0b57f7e9
commit 6c8414f844
33 changed files with 335 additions and 148 deletions

View file

@ -1,9 +1,12 @@
<?
/**
* @property User $User
*/
class Payment extends PropertiesBase{
public $PaymentId;
protected $User = null;
public $UserId = null;
protected $_User = null;
public $Created;
public $ChannelId;
public $TransactionId;
@ -11,6 +14,11 @@ class Payment extends PropertiesBase{
public $Fee;
public $IsRecurring;
// *******
// METHODS
// *******
public function Create(): void{
if($this->UserId === null){
// Check if we have to create a new user in the database