Storm\Core\Object\PropertyData::SetProperty PHP Method

SetProperty() final public method

Sets a value for the supplied property
final public SetProperty ( Storm\Core\Object\IProperty $Property, mixed $Data )
$Property Storm\Core\Object\IProperty The property to set the value for
$Data mixed The value to set for the property
    public final function SetProperty(IProperty $Property, $Data)
    {
        $Identifier = $Property->GetIdentifier();
        if (!isset($this->Properties[$Identifier])) {
            throw new InvalidPropertyException('The supplied property of entity %s is not part of this %s.', $Property->HasEntityMap() ? $Property->GetEntityMap()->GetEntityType() : 'null', get_class($this));
        }
        $this->VerifyProperty($Property, $Identifier);
        $this->PropertyData[$Identifier] = $Data;
    }