Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace FlatPlan\Components; |
||
33 | public function getComponent() |
||
34 | { |
||
35 | $component = new \stdClass(); |
||
36 | $component->role = $this->getRole(); |
||
37 | $component->URL = $this->getUrl(); |
||
38 | $component->layout = $this->getLayout(); |
||
39 | $component->style = $this->getStyle(); |
||
40 | if (!is_null($this->behaviour)) { |
||
41 | $component->behaviour = $this->getBehaviour(); |
||
42 | } |
||
43 | return $component; |
||
44 | } |
||
46 |