src/Christiaan/PhpSandbox/SandboxBuilder.php
/**
     * @param array $directories
     * @return $this
     * @throws \InvalidArgumentException when a dir does not exist
     */
@param array $directories
@return $this
@throws \InvalidArgumentException when a dir does not exist
@param array $directories @return $this @throws \ InvalidArgumentException when a dir does not exist
public function openBasedir(array $directories)
    {
        foreach ($directories as $dir)
            if (!is_dir($dir))
                throw new \InvalidArgumentException();
        $this->iniSettings['open_basedir'] = implode(PATH_SEPARATOR, $directories);
        return $this;
    }
public function openBasedir ( array $ directories ) { foreach ( $ directories as $ dir ) if ( ! is_dir ( $ dir ) ) throw new \ InvalidArgumentException ( ) ; $ this -> iniSettings [ 'open_basedir' ] = implode ( PATH_SEPARATOR , $ directories ) ; return $ this ; }
@param array $directories
 @return $this
 @throws \InvalidArgumentException when a dir does not exist
@param array $directories @return $this @throws \ InvalidArgumentException when a dir does not exist