Storm\Drivers\Base\Relational\Columns\EnumDataType::ToPropertyValue PHP Метод

ToPropertyValue() публичный Метод

public ToPropertyValue ( $PersistedValue )
    public function ToPropertyValue($PersistedValue)
    {
        if (!isset($this->ValuesMap[$PersistedValue])) {
            throw new DataTypeException('Cannot map stored enum value to property value: expecting %s, %s given', implode(', ', array_keys($PersistedValue)), \Storm\Core\Utilities::GetTypeOrClass($PersistedValue));
        }
        $PropertyValue = $this->ValuesMap[$PersistedValue];
        return $PropertyValue;
    }