| 1 | <?php |
||
| 10 | class Token |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var Header |
||
| 14 | */ |
||
| 15 | private $header; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var Payload |
||
| 19 | */ |
||
| 20 | private $payload; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $signature; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var tokenBody |
||
| 29 | */ |
||
| 30 | private $tokenBody; |
||
| 31 | |||
| 32 | public function __construct() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param HeaderParameter\ParameterInterface $parameter |
||
| 40 | * @param bool $critical |
||
| 41 | */ |
||
| 42 | public function addHeader(HeaderParameter\ParameterInterface $parameter, $critical = false) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param Claim\ClaimInterface $claim |
||
| 49 | */ |
||
| 50 | public function addClaim(Claim\ClaimInterface $claim) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return Token\Header |
||
| 57 | */ |
||
| 58 | public function getHeader() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return Token\Payload |
||
| 65 | */ |
||
| 66 | public function getPayload() |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return string |
||
| 73 | */ |
||
| 74 | public function getSignature() |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @param string $signature |
||
| 81 | */ |
||
| 82 | public function setSignature($signature) |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @param string $body |
||
| 89 | */ |
||
| 90 | public function setTokenBody($body) |
||
| 94 | |||
| 95 | /** |
||
| 96 | * @return string |
||
| 97 | */ |
||
| 98 | public function getTokenBody() |
||
| 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..