Example #1
0
 /**
  * Try to build the object, if we can't return this class
  *
  * @return $this
  */
 public function make()
 {
     $this->instance = parent::make();
     return $this;
 }
Example #2
0
File: DI.php Project: smeeckaert/di
 /**
  * @return static
  */
 public static function build()
 {
     $decorator = new Decorator(get_called_class());
     return $decorator->make();
 }