From 1f64ccf7923d5f3a3c1e5a266443c4c9c9d600f2 Mon Sep 17 00:00:00 2001 From: Sam Georges Date: Sun, 3 Aug 2014 10:03:46 +1000 Subject: [PATCH] Traits use private instead of protected so they can be used/reused in base classes --- modules/backend/traits/ViewMaker.php | 4 ++-- modules/system/traits/AssetMaker.php | 2 +- modules/system/traits/ConfigMaker.php | 2 +- modules/system/traits/PropertyContainer.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/backend/traits/ViewMaker.php b/modules/backend/traits/ViewMaker.php index 9511d2ad3..64b69e677 100644 --- a/modules/backend/traits/ViewMaker.php +++ b/modules/backend/traits/ViewMaker.php @@ -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. diff --git a/modules/system/traits/AssetMaker.php b/modules/system/traits/AssetMaker.php index 6e5be3450..ebfc136c7 100644 --- a/modules/system/traits/AssetMaker.php +++ b/modules/system/traits/AssetMaker.php @@ -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. diff --git a/modules/system/traits/ConfigMaker.php b/modules/system/traits/ConfigMaker.php index b543f268f..3e995ea7d 100644 --- a/modules/system/traits/ConfigMaker.php +++ b/modules/system/traits/ConfigMaker.php @@ -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. diff --git a/modules/system/traits/PropertyContainer.php b/modules/system/traits/PropertyContainer.php index 5e9af376f..f29b97fde 100644 --- a/modules/system/traits/PropertyContainer.php +++ b/modules/system/traits/PropertyContainer.php @@ -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.