Traits use private instead of protected so they can be used/reused in base classes

This commit is contained in:
Sam Georges 2014-08-03 10:03:46 +10:00
parent fecfeee2ac
commit 1f64ccf792
4 changed files with 5 additions and 5 deletions

View File

@ -24,12 +24,12 @@ trait ViewMaker
/**
* @var string Specifies a path to the views directory.
*/
protected $viewPath;
private $viewPath;
/**
* @var string Specifies a path to the layout directory.
*/
protected $layoutPath;
private $layoutPath;
/**
* @var string Layout to use for the view.

View File

@ -21,7 +21,7 @@ trait AssetMaker
/**
* @var array Collection of assets to display in the layout.
*/
protected $assets = ['js'=>[], 'css'=>[], 'rss'=>[]];
private $assets = ['js'=>[], 'css'=>[], 'rss'=>[]];
/**
* @var string Specifies a path to the asset directory.

View File

@ -22,7 +22,7 @@ trait ConfigMaker
/**
* @var string Specifies a path to the config directory.
*/
protected $configPath;
private $configPath;
/**
* Reads the contents of the supplied file and applies it to this object.

View File

@ -15,7 +15,7 @@ trait PropertyContainer
/**
* @var array Contains the object property values.
*/
protected $properties = [];
private $properties = [];
/**
* Validates the properties against the defined properties of the class.