public function addSearchLocation($location)
    {
        if (!file_exists($location)) {
            throw new \InvalidArgumentException(
                sprintf("The location path %s is not valid.", $location)
            );
        }

        $this->searchLocations[] = $location;

        return $this;
    }
public function addSearchLocation($location)
    {
        if (!file_exists($location)) {
            throw new \InvalidArgumentException(
                sprintf("The location path %s is not valid.", $location)
            );
        }

        $this->searchLocations[] = $location;

        return $this;
    }
public function addSearchLocation ( $ location ) { if ( ! file_exists ( $ location ) ) { throw new \ InvalidArgumentException ( sprintf ( "The location path %s is not valid." , $ location ) ) ; } $ this -> searchLocations [ ] = $ location ; return $ this ; }
Add search location.

@throws \InvalidArgumentException

@param string $location
The location path on which to conduct the search.
Add search location .