src/Components/CarouselComponent.php
public function setSlides(SS_List $slides)
    {
        $list = ArrayList::create();
        
        foreach ($slides as $slide) {
            $list->push($slide->setParentInstance($this));
        }
        
        $this->slides = $list;
    }
public function setSlides(SS_List $slides)
    {
        $list = ArrayList::create();
        
        foreach ($slides as $slide) {
            $list->push($slide->setParentInstance($this));
        }
        
        $this->slides = $list;
    }
public function setSlides ( SS_List $ slides ) { $ list = ArrayList :: create ( ) ; foreach ( $ slides as $ slide ) { $ list -> push ( $ slide -> setParentInstance ( $ this ) ) ; } $ this -> slides = $ list ; }
Defines the slides property for the receiver.

@param SS_List $slides

@return $this
Defines the slides property for the receiver .