*/ class CreateDirectory extends Create { /** * Thing we're creating * * @author Phil Burton */ protected $thing = "directory"; /** * Check if the directory already exists * * @param string $filename * @author Phil Burton */ public function __construct(string $filename) { parent::__construct($filename); if (file_exists($filename)) { throw new \Exception('Directory already exists at: ' . $filename); } } /** * Create the new directory * * @author Phil Burton */ public function excecute() { echo "execute"; } }