public function setsTabs($tabs)
    {
        if (is_array($tabs)) {
            $tabs = new ArrayCollection($tabs);
        }
        if (!$tabs instanceof ArrayCollection) {
            throw new \UnexpectedValueException("Expected array or instance of " . ArrayCollection::class);
        }

        $this->tabs = $tabs;

        return $this;
    }
public function setsTabs($tabs)
    {
        if (is_array($tabs)) {
            $tabs = new ArrayCollection($tabs);
        }
        if (!$tabs instanceof ArrayCollection) {
            throw new \UnexpectedValueException("Expected array or instance of " . ArrayCollection::class);
        }

        $this->tabs = $tabs;

        return $this;
    }
public function setsTabs ( $ tabs ) { if ( is_array ( $ tabs ) ) { $ tabs = new ArrayCollection ( $ tabs ) ; } if ( ! $ tabs instanceof ArrayCollection ) { throw new \ UnexpectedValueException ( "Expected array or instance of " . ArrayCollection :: class ) ; } $ this -> tabs = $ tabs ; return $ this ; }
Sets the tabs.

@param array|ArrayCollection $tabs

@return $this
Sets the tabs .