Skip to content

Commit

Permalink
BC Breaking: Collection::models visibility changed from public to pro…
Browse files Browse the repository at this point in the history
…tected
  • Loading branch information
SilverFire committed Dec 1, 2015
1 parent df76b0f commit dd8cbf2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

/**
* Class Collection manages the collection of the models.
*
* @var Model[] $models the array of models in the collection
*/
class Collection extends Component
{
Expand All @@ -38,7 +40,7 @@ class Collection extends Component
/**
* @var array of models
*/
public $models = [];
protected $models = [];

/**
* @var string the name of the form. Sets automatically on [[set()]]
Expand Down Expand Up @@ -134,6 +136,13 @@ public function getIds()
return $ids;
}

/**
* @return Model[] models
*/
public function getModels() {
return $this->models;
}

/**
* Sets the scenario of the default model.
*
Expand Down

0 comments on commit dd8cbf2

Please sign in to comment.