Total Complexity | 5 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | class Templates extends AbstractApi |
||
13 | { |
||
14 | private $cache = null; |
||
15 | public function all(int $projectId) |
||
16 | { |
||
17 | if ($this->cache === null) { |
||
18 | $this->cache = $this->connector->send_get('get_templates/'.$this->encodePath($projectId)); |
||
19 | } |
||
20 | return $this->cache; |
||
21 | } |
||
22 | |||
23 | public function findByName(int $projectId, string $name) |
||
32 | } |
||
33 | } |