Conditions | 4 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function getCaptions(){ |
||
23 | if(isset($this->captions)){ |
||
24 | $result= $this->captions; |
||
25 | for($i=\sizeof($result);$i<$this->count();$i++){ |
||
26 | $result[]=""; |
||
27 | } |
||
28 | return $result; |
||
29 | } |
||
30 | $captions=[]; |
||
31 | $index=0; |
||
32 | $count=$this->count(); |
||
33 | while($index<$count){ |
||
34 | $captions[]=$this->getCaption($index++); |
||
35 | } |
||
36 | return $captions; |
||
37 | } |
||
38 | |||
43 | } |