Add a file to the stack.
public add ( Bolt\Filesystem\Handler\FileInterface | string $filename, Bolt\Filesystem\Handler\FileInterface &$removed = null ) : Bolt\Filesystem\Handler\FileInterface | ||
$filename | Bolt\Filesystem\Handler\FileInterface | string | The file to add. |
$removed | Bolt\Filesystem\Handler\FileInterface | Returns the removed file, if one was removed. |
Результат | Bolt\Filesystem\Handler\FileInterface | If filename cannot be matched to filesystem. |