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

Animation   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 3
c 2
b 0
f 1
lcom 1
cbo 0
dl 0
loc 35
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A addShape() 0 5 1
A getShapeCollection() 0 4 1
A setShapeCollection() 0 5 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