public function add($element) : BagInterface
    {
        array_unshift($this->elements, $element);
        shuffle($this->elements);
        return $this;
    }
public function add($element) : BagInterface
    {
        array_unshift($this->elements, $element);
        shuffle($this->elements);
        return $this;
    }
public function add ( $ element ) : BagInterface { array_unshift ( $ this -> elements , $ element ) ; shuffle ( $ this -> elements ) ; return $ this ; }
Adds a new element to the bag.

@param mixed $element The element to add.

@return BagInterface
Adds a new element to the bag .