Phulp\DistFile::__construct PHP Method

__construct() public method

public __construct ( $content, string $name = '', string $fullpath = '', string $relativepath = '' )
$name string
$fullpath string
$relativepath string
    public function __construct($content, $name = '', $fullpath = '', $relativepath = '')
    {
        $this->content = $content;
        $this->name = trim($name, DIRECTORY_SEPARATOR);
        $this->fullpath = rtrim($fullpath, DIRECTORY_SEPARATOR);
        $this->relativepath = rtrim($relativepath, DIRECTORY_SEPARATOR);
        if ($this->name && $this->fullpath) {
            $this->lastChangeTime = filemtime($this->fullpath . DIRECTORY_SEPARATOR . $this->name);
        }
        $this->basepath = rtrim(preg_replace("~{$this->relativepath}\$~", '', $this->fullpath), DIRECTORY_SEPARATOR);
        $this->distpathname = $this->relativepath . DIRECTORY_SEPARATOR . $this->name;
    }