src/Metadata/Resource/ResourceMetadata.php
public function getTypedOperationAttribute(string $operationType, string $operationName, string $key, $defaultValue = null, bool $resourceFallback = false)
    {
        switch ($operationType) {
            case OperationType::COLLECTION:
                return $this->getCollectionOperationAttribute($operationName, $key, $defaultValue, $resourceFallback);
            case OperationType::ITEM:
                return $this->getItemOperationAttribute($operationName, $key, $defaultValue, $resourceFallback);
            default:
                return $this->getSubresourceOperationAttribute($operationName, $key, $defaultValue, $resourceFallback);
        }
    }
public function getTypedOperationAttribute(string $operationType, string $operationName, string $key, $defaultValue = null, bool $resourceFallback = false)
    {
        switch ($operationType) {
            case OperationType::COLLECTION:
                return $this->getCollectionOperationAttribute($operationName, $key, $defaultValue, $resourceFallback);
            case OperationType::ITEM:
                return $this->getItemOperationAttribute($operationName, $key, $defaultValue, $resourceFallback);
            default:
                return $this->getSubresourceOperationAttribute($operationName, $key, $defaultValue, $resourceFallback);
        }
    }
public function getTypedOperationAttribute ( string $ operationType , string $ operationName , string $ key , $ defaultValue = null , bool $ resourceFallback = false ) { switch ( $ operationType ) { case OperationType :: COLLECTION : return $ this -> getCollectionOperationAttribute ( $ operationName , $ key , $ defaultValue , $ resourceFallback ) ; case OperationType :: ITEM : return $ this -> getItemOperationAttribute ( $ operationName , $ key , $ defaultValue , $ resourceFallback ) ; default : return $ this -> getSubresourceOperationAttribute ( $ operationName , $ key , $ defaultValue , $ resourceFallback ) ; } }
Gets an attribute for a given operation type and operation name.

@param mixed|null $defaultValue
Gets an attribute for a given operation type and operation name .