Skip to content

Commit

Permalink
make methods protected ...
Browse files Browse the repository at this point in the history
  • Loading branch information
fico7489 committed Mar 26, 2020
1 parent df3810f commit 16d92b7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/EloquentJoinBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,25 @@ class EloquentJoinBuilder extends Builder
const AGGREGATE_COUNT = 'COUNT';

//use table alias for join (real table name or sha1)
private $useTableAlias = false;
protected $useTableAlias = false;

//appendRelationsCount
private $appendRelationsCount = false;
protected $appendRelationsCount = false;

//leftJoin
private $leftJoin = true;
protected $leftJoin = true;

//aggregate method
private $aggregateMethod = self::AGGREGATE_MAX;
protected $aggregateMethod = self::AGGREGATE_MAX;

//base builder
public $baseBuilder;
protected $baseBuilder;

//store if ->select(...) is already called on builder (we want only one groupBy())
private $selected = false;
protected $selected = false;

//store joined tables, we want join table only once (e.g. when you call orderByJoin more time)
private $joinedTables = [];
protected $joinedTables = [];

//store clauses on relation for join
public $relationClauses = [];
Expand Down Expand Up @@ -153,7 +153,7 @@ public function joinRelations($relations, $leftJoin = null)
}

//helpers methods
private function performJoin($relations, $leftJoin = null)
protected function performJoin($relations, $leftJoin = null)
{
//detect join method
$leftJoin = null !== $leftJoin ? $leftJoin : $this->leftJoin;
Expand Down Expand Up @@ -234,7 +234,7 @@ private function performJoin($relations, $leftJoin = null)
return $currentTableAlias.'.'.$column;
}

private function joinQuery($join, $relation, $relatedTableAlias)
protected function joinQuery($join, $relation, $relatedTableAlias)
{
/** @var Builder $relationQuery */
$relationBuilder = $relation->getQuery();
Expand Down

0 comments on commit 16d92b7

Please sign in to comment.