Completed
Push — develop ( 95aba9...86cfd3 )
by Franck
15s
created

Animation::getShapeCollection()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace PhpOffice\PhpPresentation\Slide;
3
4
use PhpOffice\PhpPresentation\AbstractShape;
5
6
class Animation
7
{
8
    /**
9
     * @var array
10
     */
11
    protected $shapeCollection = array();
12
13
    /**
14
     * @param AbstractShape $shape
15
     * @return Animation
16
     */
17 2
    public function addShape(AbstractShape $shape)
18
    {
19 2
        $this->shapeCollection[] = $shape;
20 2
        return $this;
21
    }
22
23
    /**
24
     * @return array
25
     */
26 2
    public function getShapeCollection()
27
    {
28 2
        return $this->shapeCollection;
29
    }
30
31
    /**
32
     * @param array $array
33
     * @return Animation
34
     */
35 1
    public function setShapeCollection(array $array = array())
36
    {
37 1
        $this->shapeCollection = $array;
38 1
        return $this;
39
    }
40
}
41