| Total Complexity | 5 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace FlatPlan\Components; |
||
| 3 | class Social extends AbstractComponent { |
||
| 4 | |||
| 5 | protected $url; |
||
| 6 | |||
| 7 | protected $roles = ['instagram', 'facebook_post', '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 | protected function getComponent() |
||
| 39 | } |
||
| 40 | } |
||
| 41 |