Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | class SpriteTemplate extends AbstractTemplate |
||
21 | { |
||
22 | use BaseUrlTrait; |
||
23 | |||
24 | /** |
||
25 | * Show the sprite id besides the icon. |
||
26 | * |
||
27 | * @var boolean |
||
28 | */ |
||
29 | protected $showSpriteId = true; |
||
30 | |||
31 | /** |
||
32 | * @param Container $container A Pimple DI container. |
||
33 | * @return void |
||
34 | */ |
||
35 | protected function setDependencies(Container $container) |
||
36 | { |
||
37 | parent::setDependencies($container); |
||
38 | |||
39 | $this->setBaseUrl($container['base-url']); |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return boolean |
||
44 | */ |
||
45 | public function showSpriteId() |
||
46 | { |
||
47 | return $this->showSpriteId; |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @param boolean $flag Show the sprite id besides the icon. |
||
52 | * @return self |
||
53 | */ |
||
54 | public function setShowSpriteId($flag) |
||
59 | } |
||
60 | } |
||
61 |