mirror of
https://github.com/standardebooks/web.git
synced 2025-07-20 22:33:57 -04:00
Update PropertiesBase to new patterns and improve static analysis checks
This commit is contained in:
parent
5f0b57f7e9
commit
6c8414f844
33 changed files with 335 additions and 148 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue