Completed
Pull Request — develop (#626)
by
unknown
09:26
created

AbstractTypeLine   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 40%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 31
ccs 2
cts 5
cp 0.4
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getIsSmooth() 0 3 1
A setIsSmooth() 0 5 1
1
<?php
2
/**
3
 * This file is part of PHPPresentation - A pure PHP library for reading and writing
4
 * presentations documents.
5
 *
6
 * PHPPresentation is free software distributed under the terms of the GNU Lesser
7
 * General Public License version 3 as published by the Free Software Foundation.
8
 *
9
 * For the full copyright and license information, please read the LICENSE
10
 * file that was distributed with this source code. For the full list of
11
 * contributors, visit https://github.com/PHPOffice/PHPPresentation/contributors.
12
 *
13
 * @link        https://github.com/PHPOffice/PHPPresentation
14
 * @copyright   2009-2015 PHPPresentation contributors
15
 * @license     http://www.gnu.org/licenses/lgpl.txt LGPL version 3
16
 */
17
18
namespace PhpOffice\PhpPresentation\Shape\Chart\Type;
19
20
use PhpOffice\PhpPresentation\ComparableInterface;
21
22
/**
23
 * \PhpOffice\PhpPresentation\Shape\Chart\Type\Line
24
 */
25
abstract class AbstractTypeLine extends AbstractType implements ComparableInterface
26
{
27
	/**
28
	* Is Line Smooth?
29
	* @var boolean 
30
	*/
31
   protected $isSmooth = false;
32
   
33
	/**
34
	* Is Line Smooth?
35
	*
36
	* @return boolean
37
	*/
38 16
   public function getIsSmooth(){
39 16
	   return $this->isSmooth;
40
   }
41
   
42
    /**
43
    * Set Line Smoothness
44
    *
45
    * @param  boolean $value
46
    * @return $this
47
    */
48
    public function setIsSmooth($value = true)
49
    {
50
        $this->isSmooth = $value;
51
        return $this;
52
    }
53
   
54
   
55
}
56