Storm\Drivers\Platforms\Mysql\ObjectMapper::DateInterval___construct PHP Метод

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

public DateInterval___construct ( array $ArgumentExpressions )
$ArgumentExpressions array
    public function DateInterval___construct(array $ArgumentExpressions)
    {
        if (!$ArgumentExpressions[0] instanceof EE\ConstantExpression) {
            throw new PlatformException('Call to DateInterval::__construct() must contain a single constant value');
        }
        return Expression::Constant(new \DateInterval($ArgumentExpressions[0]->GetValue()));
    }