Skip to content

Commit

Permalink
Updated PHPDocs to improve type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Nov 20, 2015
1 parent c72dff9 commit df76b0f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ActiveDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@

class ActiveDataProvider extends \yii\data\ActiveDataProvider
{
/**
* @var ActiveQuery the query that is used to fetch data models and [[totalCount]]
* if it is not explicitly set.
*/
public $query;
}
20 changes: 20 additions & 0 deletions src/ActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,4 +466,24 @@ public function getRelation($name, $throwException = true)
{
return parent::getRelation($name, $throwException);
}

/**
* {@inheritdoc}
* @return ActiveQuery the relational query object.
*/
public function hasOne($class, $link)
{
return parent::hasOne($class, $link);
}

/**
* {@inheritdoc}
* @return ActiveQuery the relational query object.
*/
public function hasMany($class, $link)
{
return parent::hasMany($class, $link);
}


}

0 comments on commit df76b0f

Please sign in to comment.