| Total Complexity | 7 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 5 | trait ElementPlacementTrait |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @return string |
||
| 9 | */ |
||
| 10 | public function getTag() |
||
| 11 | { |
||
| 12 | return $this->tag; |
||
| 13 | } |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param string $tag |
||
| 17 | * |
||
| 18 | * @return $this |
||
| 19 | */ |
||
| 20 | public function setTag($tag) |
||
| 21 | { |
||
| 22 | $this->tag = $tag; |
||
|
|
|||
| 23 | |||
| 24 | return $this; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | public function getPlacement() |
||
| 31 | { |
||
| 32 | return $this->placement; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $placement |
||
| 37 | * |
||
| 38 | * @return $this |
||
| 39 | */ |
||
| 40 | public function setPlacement($placement) |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | * @deprecated use getPlacement() |
||
| 50 | */ |
||
| 51 | public function getPosition() |
||
| 52 | { |
||
| 53 | return $this->getPlacement(); |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @param string $position |
||
| 58 | * |
||
| 59 | * @return $this |
||
| 60 | * @deprecated use setPlacement(string $placement) |
||
| 61 | */ |
||
| 62 | public function setPosition($position) |
||
| 65 | } |
||
| 66 | } |
||
| 67 |