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 RolesInherits extends AbstractModel
{
/**
*
* @var integer
*/
public $roles_id;
public $roles_inherit;
* Initialize method for model.
public function initialize()
$this->setSource('roles_inherits');
$this->belonsTo(
belonsTo()
Gewaer\Models\RolesInherits
__call
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$this->/** @scrutinizer ignore-call */
belonsTo(
'roles_id',
'Gewaer\Models\Roles',
'id',
['alias' => 'role']
);
}
* Returns table name mapped in the model.
* @return string
public function getSource(): string
return 'roles_inherits';