public function slaveOkay($okay = true)
    {
        if (null !== $okay) {
            if (!is_bool($okay)) {
                throw new \InvalidArgumentException('The slave okay is not a boolean.');
            }
        }

        $this->slaveOkay = $okay;

        return $this;
    }
public function slaveOkay($okay = true)
    {
        if (null !== $okay) {
            if (!is_bool($okay)) {
                throw new \InvalidArgumentException('The slave okay is not a boolean.');
            }
        }

        $this->slaveOkay = $okay;

        return $this;
    }
public function slaveOkay ( $ okay = true ) { if ( null !== $ okay ) { if ( ! is_bool ( $ okay ) ) { throw new \ InvalidArgumentException ( 'The slave okay is not a boolean.' ) ; } } $ this -> slaveOkay = $ okay ; return $ this ; }
Sets the slave okay.

@param Boolean|null $okay If it is okay to query the slave (true by default).

@return \Mandango\Query The query instance (fluent interface).
Sets the slave okay .