1 | <?php |
||
13 | class PortfolioSpec extends ObjectBehavior |
||
14 | { |
||
15 | public function let(AlmaClient $client, Bib $bib) |
||
21 | |||
22 | public function it_is_initializable() |
||
26 | |||
27 | protected function expectRequest($client) |
||
33 | |||
34 | public function it_fetches_data_when_needed(AlmaClient $client) |
||
40 | |||
41 | public function it_belongs_to_collection(AlmaClient $client) |
||
48 | } |
||
49 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.