public function addDocumentation(string $url, ?string $anchor = null ): KBDocumentation
    {
        $this->url = $url;
        if ($this->docs === null) {
            $this->docs = array();
        }
        $kbd          = new KBDocumentation($url, $anchor);
        $this->docs[] = $kbd;
        return $kbd;
    }
public function addDocumentation(string $url, ?string $anchor = null ): KBDocumentation
    {
        $this->url = $url;
        if ($this->docs === null) {
            $this->docs = array();
        }
        $kbd          = new KBDocumentation($url, $anchor);
        $this->docs[] = $kbd;
        return $kbd;
    }
public function addDocumentation ( string $ url , ? string $ anchor = null ) : KBDocumentation { $ this -> url = $ url ; if ( $ this -> docs === null ) { $ this -> docs = array ( ) ; } $ kbd = new KBDocumentation ( $ url , $ anchor ) ; $ this -> docs [ ] = $ kbd ; return $ kbd ; }
Add documentation link

@param string      $url    The URL
@param string|null $anchor The anchor
@return KBDocumentation
Add documentation link