Conditions | 6 |
Paths | 6 |
Total Lines | 17 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function handleCommand($command, $data = null) |
||
34 | { |
||
35 | switch ($command) { |
||
36 | case 'ref': |
||
37 | case 'inline': |
||
38 | case 'item': |
||
39 | $this->mostRecentItem = self::typeFactory($this, $data); |
||
40 | $this->allOfItems[] = $this->mostRecentItem; |
||
41 | return $this; |
||
42 | } |
||
43 | if (isset($this->mostRecentItem)) { |
||
44 | if ($this->mostRecentItem->handleCommand($command, $data)) { |
||
45 | return $this; |
||
46 | } |
||
47 | } |
||
48 | return parent::handleCommand($command, $data); |
||
49 | } |
||
50 | |||
62 |