public function addPreferredElements($elements)
    {
        if (is_array($elements)) {
            $this->preferredElements = array_merge($this->preferredElements, $elements);
        } else {
            $this->preferredElements[] = $elements;
        }
    }
public function addPreferredElements($elements)
    {
        if (is_array($elements)) {
            $this->preferredElements = array_merge($this->preferredElements, $elements);
        } else {
            $this->preferredElements[] = $elements;
        }
    }
public function addPreferredElements ( $ elements ) { if ( is_array ( $ elements ) ) { $ this -> preferredElements = array_merge ( $ this -> preferredElements , $ elements ) ; } else { $ this -> preferredElements [ ] = $ elements ; } }
Add one or more preferred elements for snippetting.

@param array|string $elements An array of preferred-element objects or a single preferred-element object.
Add one or more preferred elements for snippetting .