/**
* Gets the ResourceIdentifier's arity.
*
* One must check self::hasArity() before calling this method.
*
* @return int
* The arity.
*/
public function getArity() { assert($this->
hasArity());
return $this->meta
[static::ARITY_KEY
];
} /**
* Returns a copy of the given ResourceIdentifier with the given arity.
*
* @param int $arity
* The new arity; must be a non-negative integer.
*
* @return static
* A newly created ResourceIdentifier with the given arity, otherwise
* the same.
*/