src/Validator/MailDomain.php
public function setFile($file)
    {
        if (empty($file) || false === stream_resolve_include_path($file)) {
            throw new Exception\InvalidArgumentException('Invalid options to validator provided');
        }

        $this->options['file'] = $file;
        return $this;
    }
public function setFile($file)
    {
        if (empty($file) || false === stream_resolve_include_path($file)) {
            throw new Exception\InvalidArgumentException('Invalid options to validator provided');
        }

        $this->options['file'] = $file;
        return $this;
    }
public function setFile ( $ file ) { if ( empty ( $ file ) || false === stream_resolve_include_path ( $ file ) ) { throw new Exception \ InvalidArgumentException ( 'Invalid options to validator provided' ) ; } $ this -> options [ 'file' ] = $ file ; return $ this ; }
Sets the path to the file

@param  string $path to the file
@return MailDomain Provides a fluent interface
@throws Exception\InvalidArgumentException When file is not found
Sets the path to the file