public function cards(array $cards = [])
    {
        if (count($cards) > 10) {
            throw CouldNotCreateMessage::messageCardsLimitExceeded();
        }

        $this->cards = $cards;

        return $this;
    }
public function cards(array $cards = [])
    {
        if (count($cards) > 10) {
            throw CouldNotCreateMessage::messageCardsLimitExceeded();
        }

        $this->cards = $cards;

        return $this;
    }
public function cards ( array $ cards = [ ] ) { if ( count ( $ cards ) > 10 ) { throw CouldNotCreateMessage :: messageCardsLimitExceeded ( ) ; } $ this -> cards = $ cards ; return $ this ; }
Add up to 10 cards to be displayed in a carousel.

@param array $cards

@return $this
@throws CouldNotCreateMessage
Add up to 10 cards to be displayed in a carousel .