| Total Complexity | 7 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class LineProperty |
||
| 14 | { |
||
| 15 | public $iWeight = 1; |
||
| 16 | public $iColor = 'black'; |
||
| 17 | public $iStyle = 'solid'; |
||
| 18 | public $iShow = false; |
||
| 19 | |||
| 20 | 4 | public function __construct($aWeight = 1, $aColor = 'black', $aStyle = 'solid') |
|
| 21 | { |
||
| 22 | 4 | $this->iWeight = $aWeight; |
|
| 23 | 4 | $this->iColor = $aColor; |
|
| 24 | 4 | $this->iStyle = $aStyle; |
|
| 25 | 4 | } |
|
| 26 | |||
| 27 | 1 | public function SetColor($aColor) |
|
| 28 | { |
||
| 29 | 1 | $this->iColor = $aColor; |
|
| 30 | 1 | } |
|
| 31 | |||
| 32 | 1 | public function SetWeight($aWeight) |
|
| 33 | { |
||
| 34 | 1 | $this->iWeight = $aWeight; |
|
| 35 | 1 | } |
|
| 36 | |||
| 37 | 1 | public function SetStyle($aStyle) |
|
| 40 | 1 | } |
|
| 41 | |||
| 42 | 2 | public function Show($aShow = true) |
|
| 45 | 2 | } |
|
| 46 | |||
| 47 | 1 | public function Stroke($aImg, $aX1, $aY1, $aX2, $aY2) |
|
| 62 |