public function user($user = null)
    {
        if ($user !== null) {
            $this->user = $user;
        }

        return $this->user;
    }
public function user($user = null)
    {
        if ($user !== null) {
            $this->user = $user;
        }

        return $this->user;
    }
public function user ( $ user = null ) { if ( $ user !== null ) { $ this -> user = $ user ; } return $ this -> user ; }
Sets user identifier

@param null|int|string $user

@return int|string
Sets user identifier