| Total Complexity | 6 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace FlatPlan\Components; |
||
| 3 | class Social extends AbstractComponent { |
||
| 4 | |||
| 5 | protected $url; |
||
| 6 | |||
| 7 | protected $roles = ['instagram', 'facebook_post', 'tiktok', 'tweet']; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @param string $role |
||
| 11 | * @param string $url |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | public function __construct($role, $url) |
||
| 15 | { |
||
| 16 | $this->setRole($role); |
||
| 17 | $this->setUrl($url); |
||
| 18 | } |
||
| 19 | |||
| 20 | private function setUrl($url) |
||
| 26 | } |
||
| 27 | |||
| 28 | private function getUrl() |
||
| 29 | { |
||
| 30 | return $this->url; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getComponent() |
||
| 44 | } |
||
| 45 | } |
||
| 46 |