1 | <?php |
||
23 | class BaseCrm extends Resource |
||
24 | { |
||
25 | /** @var Transport */ |
||
26 | protected $transport; |
||
27 | |||
28 | /** |
||
29 | * @param string $token |
||
30 | * @param ClientInterface $client |
||
|
|||
31 | */ |
||
32 | public function __construct($token = '', ClientInterface $client = null) |
||
37 | |||
38 | /** {@inheritdoc} */ |
||
39 | protected function init() |
||
50 | |||
51 | /** {@inheritdoc} */ |
||
52 | protected function getEndpoint() |
||
58 | |||
59 | /** |
||
60 | * @return string |
||
61 | */ |
||
62 | public function getToken() |
||
66 | |||
67 | /** |
||
68 | * @param string $token |
||
69 | * |
||
70 | * @return $this |
||
71 | */ |
||
72 | public function setToken($token) |
||
78 | } |
||
79 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.