| Conditions | 2 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function getSubsite($id, OsnovaResource $resource = null) |
||
| 20 | { |
||
| 21 | try { |
||
| 22 | $response = $this->getApiProvider()->getClient()->request('GET', 'subsite/'.$id); |
||
| 23 | |||
| 24 | return $this->getEntitiesBuilder(Subsite::class) |
||
| 25 | ->fromResponse($response) |
||
| 26 | ->with($this->apiProvider, $resource) |
||
| 27 | ->item(); |
||
| 28 | } catch (RequestException $e) { |
||
| 29 | // |
||
| 30 | } |
||
| 31 | |||
| 32 | return null; |
||
| 33 | } |
||
| 35 |