Permalink
Browse files

Minimise class member visibility

Simply put it was the ones that didn't have any tests exposing them directly
  • Loading branch information...
1 parent cde471f commit 93879e49e9b5947e29195d725e013458874d9055 @nickl- nickl- committed Feb 14, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 library/Respect/Config/Container.php
@@ -71,7 +71,7 @@ public function __call($name, $dict)
return $this->getItem($name);
}
- public function configure()
+ protected function configure()
{
$configurator = $this->configurator;
$this->configurator = null;
@@ -108,7 +108,7 @@ public function getItem($name, $raw=false)
return $this->lazyLoad($name);
}
- public function loadString($configurator)
+ protected function loadString($configurator)
{
$iniData = parse_ini_string($configurator, true);
if (false === $iniData || count($iniData) == 0)
@@ -117,7 +117,7 @@ public function loadString($configurator)
return $this->loadArray($iniData);
}
- public function loadFileMultiple($folder, array $configurators)
+ protected function loadFileMultiple($folder, array $configurators)
{
return $this->loadStringMultiple(
array_map('file_get_contents',
@@ -156,7 +156,7 @@ public function loadStringMultiple(array $configurators)
$this->loadString($c);
}
- public function loadFile($configurator)
+ protected function loadFile($configurator)
{
$iniData = parse_ini_file($configurator, true);
if (false === $iniData)
@@ -165,7 +165,7 @@ public function loadFile($configurator)
return $this->loadArray($iniData);
}
- private function state()
+ protected function state()
{
return array_filter($this->getArrayCopy(), function ($v) {
return !is_object($v) || !$v instanceof Instantiator;

0 comments on commit 93879e4

Please sign in to comment.