public function references($references)
    {
        if (null !== $references && !is_array($references)) {
            throw new \InvalidArgumentException(sprintf('The references "%s" are not valid.', $references));
        }

        $this->references = $references;

        return $this;
    }
public function references($references)
    {
        if (null !== $references && !is_array($references)) {
            throw new \InvalidArgumentException(sprintf('The references "%s" are not valid.', $references));
        }

        $this->references = $references;

        return $this;
    }
public function references ( $ references ) { if ( null !== $ references && ! is_array ( $ references ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The references "%s" are not valid.' , $ references ) ) ; } $ this -> references = $ references ; return $ this ; }
Set the references.

@param array $references The references.

@return \Mandango\Query The query instance (fluent interface).

@throws \InvalidArgumentException If the references are not an array or null.

@api
Set the references .