/** * @param string $file * @param string|null $relativePath * @param string|null $relativePathname * @param bool $resolvePath */ public function __construct($file, $relativePath = null, $relativePathname = null, $resolvePath = true) { if (true === $resolvePath && false !== ($realFile = realpath($file))) { $file = $realFile; } if ($relativePath === null || $relativePathname === null) { $relativePathname = static::absoluteToRelativePath($file); $relativePath = dirname($relativePathname); } parent::__construct($file, $relativePath, $relativePathname); }
public function __construct($file, $repository, $mimeType = null) { parent::__construct($file, $file->getRelativePath(), $file->getRelativePathname()); $this->mimeType = $mimeType; $this->repository = $repository; }
/** * Constructor * * @param string $file The file name * @param string $relativePath The relative path * @param string $relativePathname The relative path name * @param array $info */ public function __construct($file, $relativePath, $relativePathname, $info) { parent::__construct($file, $relativePath, $relativePathname); $this->info = $info; }
/** * Constructor * * @param \Mni\FrontYAML\Parser $parser Front YAML parser * @param string $pathname * @param string $relPathname */ public function __construct(Parser $parser, $pathname, $relPathname) { parent::__construct($pathname, dirname($relPathname), $relPathname); $this->parser = $parser; }
public function __construct(SplFileInfo $file, $repository) { parent::__construct($file, $file->getRelativePath(), $file->getRelativePathname()); $this->repository = $repository; }