__construct() public method

Create a new Eloquent query builder instance.
public __construct ( Builder $query ) : void
$query Illuminate\Database\Query\Builder
return void
コード例 #1
0
ファイル: Builder.php プロジェクト: kyestork/laravel-postgis
 public function __construct(QueryBuilder $query)
 {
     parent::__construct($query);
 }
コード例 #2
0
 /**
  * Create a new Eloquent query builder instance.
  *
  * @param  \Illuminate\Database\Query\Builder  $query
  * @param  string $pageVariable
  * @return void
  */
 public function __construct(OriginalQueryBuilder $query, $pageVariable = 'page')
 {
     parent::__construct($query);
     $this->pageVariable = $pageVariable;
 }
コード例 #3
0
 /**
  * Create a new Eloquent query builder instance.
  *
  * @param  \Illuminate\Database\Query\Builder $query
  * @param SectionInterface                    $section
  *
  * @return void
  */
 public function __construct(QueryBuilder $query, SectionInterface $section)
 {
     parent::__construct($query);
     $this->section = $section;
 }