| 1 | <?php |
||
| 8 | abstract class BaseService |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Transaction |
||
| 12 | */ |
||
| 13 | private $transaction; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var Serializer |
||
| 17 | */ |
||
| 18 | private $serializer; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $operation; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $action; |
||
| 29 | |||
| 30 | public function __construct(Transaction $transaction) |
||
| 34 | |||
| 35 | public function executeAction() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param Serializable $serializer |
||
| 51 | */ |
||
| 52 | public function setSerializer(Serializable $serializer) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return Transaction |
||
| 61 | */ |
||
| 62 | public function getTransaction() |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @return string |
||
| 69 | */ |
||
| 70 | public function getOperation() |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @param string $operation |
||
| 77 | */ |
||
| 78 | public function setOperation($operation) |
||
| 84 | |||
| 85 | /** |
||
| 86 | * @return string |
||
| 87 | */ |
||
| 88 | public function getAction() |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @param string $action |
||
| 95 | */ |
||
| 96 | public function setAction($action) |
||
| 102 | } |
||
| 103 |
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..