| Total Complexity | 3 | 
| Total Lines | 34 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 17 | final class ItemSpec extends ObjectBehavior | ||
| 18 | { | ||
| 19 | function let(): void | ||
|  | |||
| 20 |     { | ||
| 21 | $this->beConstructedWith( | ||
| 22 | 'Super cars', | ||
| 23 | 'McLaren F1', | ||
| 24 | 'Very quirky super-car', | ||
| 25 | '/mc-laren/f1', | ||
| 26 | '$22,000,000.00', | ||
| 27 | '' | ||
| 28 | ); | ||
| 29 | } | ||
| 30 | |||
| 31 | function it_returns_an_array(): void | ||
| 40 | ]); | ||
| 41 | } | ||
| 42 | |||
| 43 | function it_returns_values(): void | ||
| 51 | } | ||
| 52 | } | ||
| 53 | 
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.