1 | <?php |
||
24 | class UseRaOption implements JsonSerializable |
||
25 | { |
||
26 | /** |
||
27 | * @var string[]|null |
||
28 | */ |
||
29 | private $useRaOption; |
||
30 | |||
31 | /** |
||
32 | * UseRaOption constructor. |
||
33 | * @param null|array $useRaOption |
||
34 | */ |
||
35 | public function __construct($useRaOption) |
||
47 | |||
48 | public static function getDefault() |
||
52 | |||
53 | public function equals(UseRaOption $other) |
||
57 | |||
58 | /** |
||
59 | * If array, returns the array sorted |
||
60 | * @return null|string[] |
||
|
|||
61 | */ |
||
62 | public function getUseRaOption() |
||
69 | |||
70 | public function jsonSerialize() |
||
74 | } |
||
75 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.