Completed
Pull Request — develop (#178)
by
unknown
09:34
created

Animation::addShape()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
namespace PhpOffice\PhpPresentation\Slide;
3
4
class Animation
5
{
6
    private $shapeCollection = array();
7
   
8
    public function __construct()
9
    {
10
        
11
    }
12
    
13
    public function addShape($shape)
14
    {
15
        $this->shapeCollection[] = $shape;
16
        
17
        return $shape;
18
    }
19
    
20
    public function getShapeCollection()
21
    {
22
        return $this->shapeCollection;
23
    }   
24
}
25