1 | <?php |
||
14 | class Info extends ClassStructure { |
||
15 | /** @var string A unique and precise title of the API. */ |
||
16 | public $title; |
||
17 | |||
18 | /** @var string A semantic version number of the API. */ |
||
19 | public $version; |
||
20 | |||
21 | /** @var string A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed. */ |
||
22 | public $description; |
||
23 | |||
24 | /** @var string The terms of service for the API. */ |
||
25 | public $termsOfService; |
||
26 | |||
27 | /** @var Contact Contact information for the owners of the API. */ |
||
28 | public $contact; |
||
29 | |||
30 | /** @var License */ |
||
31 | public $license; |
||
32 | |||
33 | /** |
||
34 | * @param Properties|static $properties |
||
35 | * @param JsonBasicSchema $ownerSchema |
||
36 | */ |
||
37 | public static function setUpProperties($properties, JsonBasicSchema $ownerSchema) |
||
59 | |||
60 | /** |
||
61 | * @param string $title A unique and precise title of the API. |
||
62 | * @return $this |
||
63 | */ |
||
64 | public function setTitle($title) |
||
69 | |||
70 | /** |
||
71 | * @param string $version A semantic version number of the API. |
||
72 | * @return $this |
||
73 | */ |
||
74 | public function setVersion($version) |
||
79 | |||
80 | /** |
||
81 | * @param string $description A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed. |
||
82 | * @return $this |
||
83 | */ |
||
84 | public function setDescription($description) |
||
89 | |||
90 | /** |
||
91 | * @param string $termsOfService The terms of service for the API. |
||
92 | * @return $this |
||
93 | */ |
||
94 | public function setTermsOfService($termsOfService) |
||
99 | |||
100 | /** |
||
101 | * @param Contact $contact Contact information for the owners of the API. |
||
102 | * @return $this |
||
103 | */ |
||
104 | public function setContact($contact) |
||
109 | |||
110 | /** |
||
111 | * @param License $license |
||
112 | * @return $this |
||
113 | */ |
||
114 | public function setLicense($license) |
||
119 | } |
||
120 | |||
121 |
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..