Storm\Drivers\Platforms\Mysql\Columns\DataTypes\TimestampedDataType::ToPersistedValue PHP Метод

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

public ToPersistedValue ( $PropertyValue )
    public function ToPersistedValue($PropertyValue)
    {
        if (!$PropertyValue instanceof \DateTime) {
            throw new Columns\DataTypeException('The supplied property values must be an instance of \\DateTime: %s given', \Storm\Core\Utilities::GetTypeOrClass($PropertyValue));
        }
        return $PropertyValue->getTimestamp();
    }