yii2-arangodb/AqlExpression.php

40 lines
807 B
PHP

<?php
/**
* User: evgen-d
* Date: 08.10.14
* Time: 16:00
*/
namespace explosivebit\arangodb;
use yii\base\Object;
class AqlExpression extends Object
{
/**
* @var string the AQL expression represented by this object
*/
public $expression;
/**
* Constructor.
* @param string $expression the AQL expression represented by this object
* @param array $config additional configurations for this object
*/
public function __construct($expression, $config = [])
{
$this->expression = $expression;
parent::__construct($config);
}
/**
* The PHP magic function converting an object into a string.
* @return string the AQL expression.
*/
public function __toString()
{
return $this->expression;
}
}