Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix types in phpdoc #197

Merged
merged 2 commits into from
Feb 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/AbstractQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ abstract class AbstractQuery
*
* A helper for quoting identifier names.
*
* @var Quoter
* @var Common\Quoter
*
*/
protected $quoter;
Expand All @@ -70,7 +70,7 @@ abstract class AbstractQuery
*
* A builder for the query.
*
* @var AbstractBuilder
* @var Common\AbstractBuilder
*
*/
protected $builder;
Expand All @@ -79,9 +79,9 @@ abstract class AbstractQuery
*
* Constructor.
*
* @param Quoter $quoter A helper for quoting identifier names.
* @param Common\Quoter $quoter A helper for quoting identifier names.
*
* @param AbstractBuilder $builder A builder for the query.
* @param Common\AbstractBuilder $builder A builder for the query.
*
*/
public function __construct(QuoterInterface $quoter, $builder)
Expand Down
6 changes: 3 additions & 3 deletions src/Common/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ class Delete extends AbstractDmlQuery implements DeleteInterface
*
* Sets the table to delete from.
*
* @param string $table The table to delete from.
* @param string $from The table to delete from.
harikt marked this conversation as resolved.
Show resolved Hide resolved
*
* @return $this
*
*/
public function from($table)
public function from($from)
{
$this->from = $this->quoter->quoteName($table);
$this->from = $this->quoter->quoteName($from);
return $this;
}

Expand Down
6 changes: 3 additions & 3 deletions src/QueryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ protected function newInstance($query)
*
* @param string $query The query type.
*
* @return AbstractBuilder
* @return Common\AbstractBuilder
*
*/
protected function newBuilder($query)
Expand All @@ -188,7 +188,7 @@ protected function newBuilder($query)
*
* Returns the Quoter object for queries; creates one if needed.
*
* @return Quoter
* @return Common\Quoter
*
*/
protected function getQuoter()
Expand All @@ -203,7 +203,7 @@ protected function getQuoter()
*
* Returns a new Quoter for the database driver.
*
* @return QuoterInerface
* @return Common\QuoterInterface
*
*/
protected function newQuoter()
Expand Down