summaryrefslogtreecommitdiffstats
path: root/library/Director/Db/DbSelectParenthesis.php
blob: 191ad8551ab77af276faa9455b23fdf082667606 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

namespace Icinga\Module\Director\Db;

class DbSelectParenthesis extends \Zend_Db_Expr
{
    protected $select;

    public function __construct(\Zend_Db_Select $select)
    {
        parent::__construct('');
        $this->select = $select;
    }

    public function getSelect()
    {
        return $this->select;
    }

    public function __toString()
    {
        return '(' . $this->select . ')';
    }
}