From 16d92b760e9c027880c2ae7d08e4a3a62f6a233b Mon Sep 17 00:00:00 2001 From: Filip Horvat Date: Thu, 26 Mar 2020 10:44:19 +0100 Subject: [PATCH] make methods protected ... --- src/EloquentJoinBuilder.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/EloquentJoinBuilder.php b/src/EloquentJoinBuilder.php index 5730b32..ee71ece 100644 --- a/src/EloquentJoinBuilder.php +++ b/src/EloquentJoinBuilder.php @@ -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 = []; @@ -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; @@ -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();