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 UserWebhooks extends AbstractModel
{
/**
*
* @var integer
*/
public $id;
public $webhooks_id;
public $apps_id;
public $users_id;
public $companies_id;
* @var string
public $url;
public $method;
public $format;
public $is_deleted;
public $created_at;
public $updated_at;
* Initialize method for model.
public function initialize()
$this->setSource('user_webhooks');
$this->belongsTo(
'webhooks_id',
'Gewaer\Models\Webhooks',
'id',
['alias' => 'webhooks']
);
'users_id',
'Gewaer\Models\Users',
['alias' => 'users']
'companies_id',
'Gewaer\Models\Companies',
['alias' => 'companies']
'apps_id',
'Gewaer\Models\Apps',
['alias' => 'apps']
}
* Returns table name mapped in the model.
* @return string
public function getSource(): string
return 'user_webhooks';