public function withResourceOwnerVersion($resourceOwnerVersion)
    {
        $resourceOwnerVersion = (int) $resourceOwnerVersion;

        if (in_array($resourceOwnerVersion, [1, 2])) {
            $this->resourceOwnerVersion = $resourceOwnerVersion;
        }

        return $this;
    }
public function withResourceOwnerVersion($resourceOwnerVersion)
    {
        $resourceOwnerVersion = (int) $resourceOwnerVersion;

        if (in_array($resourceOwnerVersion, [1, 2])) {
            $this->resourceOwnerVersion = $resourceOwnerVersion;
        }

        return $this;
    }
public function withResourceOwnerVersion ( $ resourceOwnerVersion ) { $ resourceOwnerVersion = ( int ) $ resourceOwnerVersion ; if ( in_array ( $ resourceOwnerVersion , [ 1 , 2 ] ) ) { $ this -> resourceOwnerVersion = $ resourceOwnerVersion ; } return $ this ; }
Updates the preferred resource owner version.

@param integer $resourceOwnerVersion

@return LinkedIn
Updates the preferred resource owner version .