public function getOrdinal()
	{
		$ordinal = array_search($this->value, array_values(static::toArray()));

		return $ordinal !== false ? $ordinal : -1;
	}
public function getOrdinal()
	{
		$ordinal = array_search($this->value, array_values(static::toArray()));

		return $ordinal !== false ? $ordinal : -1;
	}
public function getOrdinal ( ) { $ ordinal = array_search ( $ this -> value , array_values ( static :: toArray ( ) ) ) ; return $ ordinal !== false ? $ ordinal : - 1 ; }
Returns the ordinal.

@return int the ordinal.
Returns the ordinal .