public function setComponents($components)
    {
        $this->components = Collection::make($components);
        foreach ($components as $component) {
            $component->attachTo($this);
        }
        return $this;
    }
public function setComponents($components)
    {
        $this->components = Collection::make($components);
        foreach ($components as $component) {
            $component->attachTo($this);
        }
        return $this;
    }
public function setComponents ( $ components ) { $ this -> components = Collection :: make ( $ components ) ; foreach ( $ components as $ component ) { $ component -> attachTo ( $ this ) ; } return $ this ; }
Allows to specify collection of child components.

@param \Illuminate\Support\Collection|ComponentInterface[]|array $components
@return $this
Allows to specify collection of child components .