| Total Complexity | 6 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | trait FileDumperTrait |
||
| 6 | { |
||
| 7 | protected $filename = null; |
||
| 8 | protected $handle = null; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Constructor. |
||
| 12 | * |
||
| 13 | * @param string $filename The filename. Must be acessible in write mode. |
||
| 14 | */ |
||
| 15 | public function __construct($filename) |
||
| 16 | { |
||
| 17 | $this->filename = $filename; |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * {@inheritdoc} |
||
| 22 | */ |
||
| 23 | public function getFilename() |
||
| 24 | { |
||
| 25 | return $this->filename; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritdoc} |
||
| 30 | */ |
||
| 31 | public function setFilename($filename) |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | public function clearHandle() |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 48 | public function __destruct() |
||
| 51 | } |
||
| 52 | } |