| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2.0078 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 2 | public function __construct( |
|
| 24 | HttpClient $client, |
||
| 25 | MessageFactory $messageFactory, |
||
| 26 | SerializerInterface $serializer = null, |
||
| 27 | string $context = null |
||
| 28 | ) { |
||
| 29 | 2 | if (null !== $context) { |
|
| 30 | $context = '/'.$context; |
||
| 31 | } |
||
| 32 | |||
| 33 | 2 | parent::__construct( |
|
| 34 | 2 | 'https://maps.googleapis.com/maps/api/place'.$context, |
|
| 35 | 2 | $client, |
|
| 36 | 2 | $messageFactory, |
|
| 37 | 2 | $serializer |
|
| 38 | ); |
||
| 41 |