| 1 | <?php |
||
| 22 | class File extends Event |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * The file |
||
| 26 | * |
||
| 27 | * @var string |
||
| 28 | **/ |
||
| 29 | private $file; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Constructor |
||
| 33 | * |
||
| 34 | * @param string $file |
||
| 35 | * @return void |
||
|
|
|||
| 36 | **/ |
||
| 37 | public function __construct($file) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get the file |
||
| 44 | * |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function getFile() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Set the file |
||
| 54 | * |
||
| 55 | * @param string $file |
||
| 56 | * @return parent |
||
| 57 | */ |
||
| 58 | public function setFile($file) |
||
| 64 | } |
||
| 65 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.