src/Pinocchio/Pinocchio.php
public function setPath($path)
    {
        if (!is_readable($path)) {
            throw new \InvalidArgumentException('The passed path is not readable: ' . $path);
        }

        $this->path = $path;
        $this->source = file_get_contents($path);

        return $this;
    }
public function setPath($path)
    {
        if (!is_readable($path)) {
            throw new \InvalidArgumentException('The passed path is not readable: ' . $path);
        }

        $this->path = $path;
        $this->source = file_get_contents($path);

        return $this;
    }
public function setPath ( $ path ) { if ( ! is_readable ( $ path ) ) { throw new \ InvalidArgumentException ( 'The passed path is not readable: ' . $ path ) ; } $ this -> path = $ path ; $ this -> source = file_get_contents ( $ path ) ; return $ this ; }
Set the path to the source file.

@param  string $path The path to the source file.

@return \Pinocchio\Pinocchio

@throws \InvalidArgumentException If $path is not a readable file.
Set the path to the source file .