src/Metadata/Resource/ResourceMetadata.php
private function findOperationAttribute(?array $operations, ?string $operationName, string $key, $defaultValue, bool $resourceFallback)
    {
        if (null !== $operationName && isset($operations[$operationName][$key])) {
            return $operations[$operationName][$key];
        }

        if ($resourceFallback && isset($this->attributes[$key])) {
            return $this->attributes[$key];
        }

        return $defaultValue;
    }
private function findOperationAttribute(?array $operations, ?string $operationName, string $key, $defaultValue, bool $resourceFallback)
    {
        if (null !== $operationName && isset($operations[$operationName][$key])) {
            return $operations[$operationName][$key];
        }

        if ($resourceFallback && isset($this->attributes[$key])) {
            return $this->attributes[$key];
        }

        return $defaultValue;
    }
private function findOperationAttribute ( ? array $ operations , ? string $ operationName , string $ key , $ defaultValue , bool $ resourceFallback ) { if ( null !== $ operationName && isset ( $ operations [ $ operationName ] [ $ key ] ) ) { return $ operations [ $ operationName ] [ $ key ] ; } if ( $ resourceFallback && isset ( $ this -> attributes [ $ key ] ) ) { return $ this -> attributes [ $ key ] ; } return $ defaultValue ; }
Gets an operation attribute, optionally fallback to a resource attribute.

@param mixed|null $defaultValue
Gets an operation attribute optionally fallback to a resource attribute .