| 1 | <?php |
||
| 19 | class Link extends Node |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @see http://man7.org/linux/man-pages/man2/lstat.2.html |
||
| 23 | */ |
||
| 24 | const S_IFTYPE = 0120000; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var Node |
||
| 28 | */ |
||
| 29 | protected $destination; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Class constructor. |
||
| 33 | * |
||
| 34 | * @param string $basename |
||
| 35 | */ |
||
| 36 | public function __construct($basename, Node $destination) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Returns Link size. |
||
| 44 | * |
||
| 45 | * The size is the length of the destination path |
||
| 46 | * |
||
| 47 | * @return mixed |
||
| 48 | */ |
||
| 49 | public function size() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return Node |
||
| 56 | */ |
||
| 57 | public function getDestination() |
||
| 61 | } |
||
| 62 |