/** * Generates custom temporal build. * @since 1.0 * @param string $command Command class. * @param string $args Arguments. */ public function build() { if (!is_dir($this->path)) { mkdir($this->path, 0777, true); } $id = uniqid() . '.php'; $file = fopen($this->path . $id, 'w'); fwrite($file, $this->header . $this->content . $this->footer); fclose($file); self::$lastBuilt = $this->path . $id; return self::$lastBuilt; }