| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class GroupMembershipUpdate extends Command |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $parameters; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param int $groupId |
||
| 24 | * @param int $principalId |
||
| 25 | * @param bool $isMember |
||
| 26 | */ |
||
| 27 | public function __construct($groupId, $principalId, $isMember) |
||
| 28 | { |
||
| 29 | $this->parameters = [ |
||
| 30 | 'action' => 'group-membership-update', |
||
| 31 | 'group-id' => (int) $groupId, |
||
| 32 | 'principal-id' => (int) $principalId, |
||
| 33 | 'is-member' => VT::toString($isMember), |
||
| 34 | ]; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | * |
||
| 40 | * @return bool |
||
| 41 | */ |
||
| 42 | protected function process() |
||
| 52 | } |
||
| 53 | } |
||
| 54 |
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.