final class ReferenceCannotBeSet extends DomainException (View source)

The exception to be thrown if a reference was attempted to be set but cannot be

Methods

becauseTheNodeTypeDoesNotDeclareIt(ReferenceName $propertyName, NodeTypeName $nodeTypeName)

No description

becauseTheConstraintsAreNotMatched(ReferenceName $referenceName, NodeTypeName $nodeTypeName, NodeTypeName $nameOfAttemptedType)

No description

becauseTheItDoesNotDeclareAProperty(ReferenceName $referenceName, NodeTypeName $nodeTypeName, PropertyName $propertyName)

No description

becauseAPropertyDoesNotMatchTheDeclaredType(ReferenceName $referenceName, NodeTypeName $nodeTypeName, PropertyName $propertyName, string $attemptedType, string $configuredType)

No description

Details

static ReferenceCannotBeSet becauseTheNodeTypeDoesNotDeclareIt(ReferenceName $propertyName, NodeTypeName $nodeTypeName)

No description

Parameters

ReferenceName $propertyName
NodeTypeName $nodeTypeName

Return Value

ReferenceCannotBeSet

static ReferenceCannotBeSet becauseTheConstraintsAreNotMatched(ReferenceName $referenceName, NodeTypeName $nodeTypeName, NodeTypeName $nameOfAttemptedType)

No description

Parameters

ReferenceName $referenceName
NodeTypeName $nodeTypeName
NodeTypeName $nameOfAttemptedType

Return Value

ReferenceCannotBeSet

static ReferenceCannotBeSet becauseTheItDoesNotDeclareAProperty(ReferenceName $referenceName, NodeTypeName $nodeTypeName, PropertyName $propertyName)

No description

Parameters

ReferenceName $referenceName
NodeTypeName $nodeTypeName
PropertyName $propertyName

Return Value

ReferenceCannotBeSet

static ReferenceCannotBeSet becauseAPropertyDoesNotMatchTheDeclaredType(ReferenceName $referenceName, NodeTypeName $nodeTypeName, PropertyName $propertyName, string $attemptedType, string $configuredType)

No description

Parameters

ReferenceName $referenceName
NodeTypeName $nodeTypeName
PropertyName $propertyName
string $attemptedType
string $configuredType

Return Value

ReferenceCannotBeSet