protected function setBuildfile(string $buildfile): self
    {
        // Buildfile must exist
        if (!is_file($buildfile)) {
            throw new DiagramException(sprintf('File "%s" is invalid.', $buildfile));
        }

        $this->buildfile = $buildfile;

        return $this;
    }
protected function setBuildfile(string $buildfile): self
    {
        // Buildfile must exist
        if (!is_file($buildfile)) {
            throw new DiagramException(sprintf('File "%s" is invalid.', $buildfile));
        }

        $this->buildfile = $buildfile;

        return $this;
    }
protected function setBuildfile ( string $ buildfile ) : self { // Buildfile must exist if ( ! is_file ( $ buildfile ) ) { throw new DiagramException ( sprintf ( 'File "%s" is invalid.' , $ buildfile ) ) ; } $ this -> buildfile = $ buildfile ; return $ this ; }
Load buildfile location

@param string $buildfile

@return $this
@throws \Jawira\PhingVisualizer\DiagramException
Load buildfile location