Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
5 / 5 |
Line | |
100.00% |
1 / 1 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
5 / 5 |
__construct(Point $a, Point $b) | |
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
|||
getA() | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
getB() | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
<?php | |
/** | |
* | |
*/ | |
namespace aae\math\cartesian { | |
/** | |
* @author Axel Ancona Esselmann | |
* @package math\cartesian | |
*/ | |
class Line { | |
protected $_a, $_b; | |
public function __construct(Point $a, Point $b) { | |
$this->_a = $a; | |
$this->_b = $b; | |
} | |
public function getA() { | |
return $this->_a; | |
} | |
public function getB() { | |
return $this->_b; | |
} | |
} | |
} |