yii2-arangodb/AqlExpression.php

40 lines
807 B
PHP
Raw Permalink Normal View History

2014-10-08 20:34:50 +08:00
<?php
/**
* User: evgen-d
* Date: 08.10.14
* Time: 16:00
*/
2017-04-14 04:44:05 +07:00
namespace explosivebit\arangodb;
2014-10-08 20:34:50 +08:00
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;
}
}