| Total Complexity | 5 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 5 | trait SmallDisplay |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | * @var bool |
||
| 10 | */ |
||
| 11 | protected $small; |
||
| 12 | protected $smallString = false; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var bool |
||
| 16 | */ |
||
| 17 | protected $isolated = true; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | public function getSmall() |
||
| 23 | { |
||
| 24 | if ($this->smallString) { |
||
| 25 | return $this->small; |
||
| 26 | } |
||
| 27 | |||
| 28 | return $this->getValueFromObject($this->getModel(), $this->small); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $small |
||
| 33 | * |
||
| 34 | * @return $this |
||
| 35 | */ |
||
| 36 | public function setSmall($small, $smallString = false) |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param bool $isolated |
||
| 46 | * |
||
| 47 | * @return $this |
||
| 48 | */ |
||
| 49 | public function setIsolated($isolated) |
||
| 50 | { |
||
| 51 | $this->isolated = $isolated; |
||
| 52 | |||
| 53 | return $this; |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function getIsolated() |
||
| 62 | } |
||
| 63 | } |
||
| 64 |