FML/ManiaLinks.php
public function addChild(ManiaLink $child)
    {
        if (!in_array($child, $this->children, true)) {
            array_push($this->children, $child);
        }
        return $this;
    }
public function addChild(ManiaLink $child)
    {
        if (!in_array($child, $this->children, true)) {
            array_push($this->children, $child);
        }
        return $this;
    }
public function addChild ( ManiaLink $ child ) { if ( ! in_array ( $ child , $ this -> children , true ) ) { array_push ( $ this -> children , $ child ) ; } return $ this ; }
Add a child ManiaLink

@api
@param ManiaLink $child Child ManiaLink
@return static
Add a child ManiaLink