| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | abstract class BCGDraw { |
||
| 14 | protected $im; |
||
| 15 | protected $filename; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Constructor. |
||
| 19 | * |
||
| 20 | * @param resource $im |
||
| 21 | */ |
||
| 22 | protected function __construct($im) { |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Sets the filename. |
||
| 28 | * |
||
| 29 | * @param string $filename |
||
| 30 | */ |
||
| 31 | public function setFilename($filename) { |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Method needed to draw the image based on its specification (JPG, GIF, etc.). |
||
| 37 | */ |
||
| 38 | abstract public function draw(); |
||
| 39 | } |
||
| 40 | ?> |
||
|
|
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.