for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Phuria\SQLBuilder\Table;
use Phuria\SQLBuilder\QueryBuilder\BuilderInterface;
/**
* @author Beniamin Jonatan Šimko <[email protected]>
*/
class SubQueryTable extends AbstractTable
{
* @var BuilderInterface
private $wrappedQueryBuilder;
* @param BuilderInterface $subQb
* @param BuilderInterface $qb
public function __construct(BuilderInterface $subQb, BuilderInterface $qb)
$this->wrappedQueryBuilder = $subQb;
parent::__construct($qb);
}
* @inheritdoc
public function getTableName()
$ref = $this->getQueryBuilder()->objectToString($this->wrappedQueryBuilder);
return '(' . $ref . ')';
* @return BuilderInterface
public function getWrappedQueryBuilder()
return $this->wrappedQueryBuilder;