Skip to content

Commit

Permalink
Add getService method on Database and Querybuilder classes
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelwendel committed Oct 10, 2022
1 parent c4411b1 commit 66035f6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ public function __construct(Service $service, string $tableName, string $primary
$this->primaryKey = $primaryKey;
}

/**
* Returns the Service instance
* @access public
* @return Service
*/
public function getService() : Service
{
return $this->service;
}

/**
* Returns the error generated
* @access public
Expand Down
10 changes: 10 additions & 0 deletions src/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ public function __construct(Service $service)
$this->service = $service;
}

/**
* Returns the Service instance
* @access public
* @return Service
*/
public function getService() : Service
{
return $this->service;
}

/**
* Returns the result (data) generated by a fetch
* @access public
Expand Down

0 comments on commit 66035f6

Please sign in to comment.