FML/ManiaCode.php
public function addElement(Element $element)
    {
        if (!in_array($element, $this->elements, true)) {
            array_push($this->elements, $element);
        }
        return $this;
    }
public function addElement(Element $element)
    {
        if (!in_array($element, $this->elements, true)) {
            array_push($this->elements, $element);
        }
        return $this;
    }
public function addElement ( Element $ element ) { if ( ! in_array ( $ element , $ this -> elements , true ) ) { array_push ( $ this -> elements , $ element ) ; } return $ this ; }
Add a ManiaCode Element

@api
@param Element $element Element to add
@return static
Add a ManiaCode Element