Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace FlatPlan\Components; |
||
29 | public function getComponent() |
||
30 | { |
||
31 | $component = new \stdClass(); |
||
32 | $component->role = $this->getRole(); |
||
33 | $component->data = $this->getData(); |
||
34 | $component->layout = $this->layout; |
||
35 | $component->style = $this->style; |
||
36 | $component->textStyle = $this->textStyle; |
||
37 | if (!is_null($this->behaviour)) { |
||
38 | $component->behaviour = $this->getBehaviour(); |
||
39 | } |
||
40 | return $component; |
||
41 | } |
||
43 |