for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Gewaer\Models;
class Webhooks extends AbstractModel
{
/**
*
* @var integer
*/
public $id;
public $system_modules_id;
public $apps_id;
* @var string
public $name;
public $description;
public $action;
public $format;
public $is_deleted;
public $created_at;
public $updated_at;
* Initialize method for model.
public function initialize()
$this->setSource('webhooks');
$this->hasMany(
'id',
'Gewaer\Models\UserWebhooks',
'webhooks_id',
['alias' => 'user-webhooks']
);
$this->belongsTo(
'system_modules_id',
'Gewaer\Models\SystemModules',
['alias' => 'modules']
'apps_id',
'Gewaer\Models\Apps',
['alias' => 'apps']
}
* Returns table name mapped in the model.
* @return string
public function getSource(): string
return 'webhooks';