| Total Complexity | 2 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class PermissionInfoFromPrincipal extends Command |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var int |
||
| 20 | */ |
||
| 21 | protected $aclId; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var int |
||
| 25 | */ |
||
| 26 | protected $principalId; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var Permission|mixed |
||
| 30 | */ |
||
| 31 | protected $permission; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param int $aclId |
||
| 35 | * @param int $principalId |
||
| 36 | */ |
||
| 37 | public function __construct($aclId, $principalId) |
||
| 38 | { |
||
| 39 | $this->aclId = (int) $aclId; |
||
| 40 | $this->principalId = (int) $principalId; |
||
| 41 | $this->permission = $this->getEntity('permission'); |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritdoc} |
||
| 46 | * |
||
| 47 | * @return Permission |
||
| 48 | */ |
||
| 49 | protected function process() |
||
| 64 | } |
||
| 65 | } |
||
| 66 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.