for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Canvas\Models;
class PaymentFrequencies extends AbstractModel
{
/**
*
* @var integer
*/
public $id;
* @var string
public $name;
public $is_deleted;
public $created_at;
public $updated_at;
* Initialize method for model.
public function initialize()
$this->setSource('payment_frequencies');
$this->hasMany(
'id',
'Canvas\Models\AppsPlans',
'payment_frequencies_id',
['alias' => 'plans']
);
}
* Returns table name mapped in the model.
* @return string
public function getSource(): string
return 'payment_frequencies';