factory() public static method

Static method to instantiate the config object and return itself to facilitate chaining methods together.
public static factory ( array $config = [], boolean $changes = false ) : Config
$config array
$changes boolean
return Config
Beispiel #1
0
 public function testConstructor()
 {
     $this->assertInstanceOf('Pop\\Config', new Config());
     $this->assertInstanceOf('Pop\\Config', Config::factory());
 }