Completed
Push — master ( f7bbc9...2208d2 )
by Lars
01:44
created

Expressions::__toString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace voku\db;
4
5
use Arrayy\Arrayy;
6
7
/**
8
 * Class Expressions, part of SQL.
9
 * Every SQL can be split into multiple expressions.
10
 * Each expression contains three parts:
11
 *
12
 * @property string|Expressions $source   of this expression, (option)
13
 * @property string             $operator (required)
14
 * @property string|Expressions $target   of this expression (required)
15
 * Just implement one function __toString.
16
 */
17
class Expressions extends Arrayy
18
{
19
  public function __toString()
20
  {
21
    return $this->source . ' ' . $this->operator . ' ' . $this->target;
22
  }
23
}
24