/** * Try to build the object, if we can't return this class * * @return $this */ public function make() { $this->instance = parent::make(); return $this; }
/** * @return static */ public static function build() { $decorator = new Decorator(get_called_class()); return $decorator->make(); }