Traits use private instead of protected so they can be used/reused in base classes
This commit is contained in:
parent
fecfeee2ac
commit
1f64ccf792
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue