src/Player.php
public function isBot($is_bot = null)
    {
        // if no parameter provided, return boolean for whether player is a bot or not
        if ($is_bot === null) {
            return $this->is_bot;
        }
        
        $this->is_bot = (bool) $is_bot;
        
        return $this;
    }
public function isBot($is_bot = null)
    {
        // if no parameter provided, return boolean for whether player is a bot or not
        if ($is_bot === null) {
            return $this->is_bot;
        }
        
        $this->is_bot = (bool) $is_bot;
        
        return $this;
    }
public function isBot ( $ is_bot = null ) { // if no parameter provided, return boolean for whether player is a bot or not if ( $ is_bot === null ) { return $ this -> is_bot ; } $ this -> is_bot = ( bool ) $ is_bot ; return $ this ; }
Is Bot? or set as a bot
@param bool $is_bot
@return $this if setting player to a bot, otherwise true/false depending on whether player is a bot
Is Bot? or set as a bot