| 1 | <?php |
||
| 22 | class MakeDirectory extends \Graze\DataFile\Modify\MakeDirectory implements FlowInterface |
||
| 23 | { |
||
| 24 | use InvokeTrait; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string|null |
||
| 28 | */ |
||
| 29 | private $visibility; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * MakeDirectory constructor. |
||
| 33 | * |
||
| 34 | * @param null $visibility |
||
| 35 | */ |
||
| 36 | 4 | public function __construct($visibility = null) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Create the directory specified by the $file if it does not exist |
||
| 43 | * |
||
| 44 | * @param NodeInterface $node |
||
| 45 | * |
||
| 46 | * @return LocalFile The original file inputted |
||
| 47 | * @throws MakeDirectoryFailedException |
||
| 48 | * |
||
| 49 | */ |
||
| 50 | 4 | public function flow(NodeInterface $node) |
|
| 58 | } |
||
| 59 |