private function BuildSource(Sql\Table $table, Sql\Join $join = null, Sql\JoinType $joinType = null, Sql\Condition $joinCondition = null)
    {
        $src = $table;
        if ($join)
        {
            if (!$joinType || !$joinCondition)
                throw new \InvalidArgumentException("If join is given, a join type and join condition are also required.");
            
            $src = $join->Join($table, $joinType, $joinCondition, true);
        }
        return $src;
    }
private function BuildSource(Sql\Table $table, Sql\Join $join = null, Sql\JoinType $joinType = null, Sql\Condition $joinCondition = null)
    {
        $src = $table;
        if ($join)
        {
            if (!$joinType || !$joinCondition)
                throw new \InvalidArgumentException("If join is given, a join type and join condition are also required.");
            
            $src = $join->Join($table, $joinType, $joinCondition, true);
        }
        return $src;
    }
private function BuildSource ( Sql \ Table $ table , Sql \ Join $ join = null , Sql \ JoinType $ joinType = null , Sql \ Condition $ joinCondition = null ) { $ src = $ table ; if ( $ join ) { if ( ! $ joinType || ! $ joinCondition ) throw new \ InvalidArgumentException ( "If join is given, a join type and join condition are also required." ) ; $ src = $ join -> Join ( $ table , $ joinType , $ joinCondition , true ) ; } return $ src ; }
Builds a sql source by prepending the table to the join if join is given.
@param Sql\Table $table
@param Sql\Join $join
@param Sql\JoinType $joinType
@param Sql\Condition $joinCondition
@return Sql\Source
Builds a sql source by prepending the table to the join if join is given .