1 | <?php |
||
8 | class PdoUpdatePermissionRoles |
||
9 | { |
||
10 | |||
11 | use LoggerAwareTrait; |
||
12 | |||
13 | public $permissions; |
||
14 | |||
15 | /** |
||
16 | * @var \PDO |
||
17 | */ |
||
18 | public $pdo; |
||
19 | |||
20 | /** |
||
21 | * @var \PDOStatement |
||
22 | */ |
||
23 | public $stmt; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | public $permissions_table = "permissions"; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | public $permissions_roles_table = "permissions_roles"; |
||
34 | |||
35 | /** |
||
36 | * @var Seperator string for roles in SELECT statement |
||
37 | */ |
||
38 | protected $separator = ","; |
||
39 | |||
40 | |||
41 | /** |
||
42 | * @var PdoAssignRoleToPermission |
||
43 | */ |
||
44 | public $assigner; |
||
45 | |||
46 | /** |
||
47 | * @var PdoAssignRoleToPermission |
||
48 | */ |
||
49 | public $unassigner; |
||
50 | |||
51 | |||
52 | |||
53 | /** |
||
54 | * @param \PDO $pdo PDO instance |
||
55 | * @param string $permissions_table Permissions table name |
||
56 | * @param string $permissions_roles_table Permissions/Roles table name |
||
57 | * @param LoggerInterface|null $logger Optional: PSR-3 Logger |
||
58 | */ |
||
59 | public function __construct( \PDO $pdo, $permissions_table, $permissions_roles_table, LoggerInterface $logger = null ) |
||
73 | |||
74 | |||
75 | /** |
||
76 | * @return int Last Insert ID or FALSE when something errored |
||
77 | * @throws PermissionNameExistsException On duplicate name |
||
78 | */ |
||
79 | public function __invoke( $permission_name, $role_ids ) |
||
114 | } |
||
115 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..