public function addCapabilities($capabilities)
    {
        if (is_array($capabilities)) {
            $this->capabilities = array_merge((array)$this->capabilities, (array)$capabilities);
        } else {
            $this->capabilities[] = (string)$capabilities;
        }
    }
public function addCapabilities($capabilities)
    {
        if (is_array($capabilities)) {
            $this->capabilities = array_merge((array)$this->capabilities, (array)$capabilities);
        } else {
            $this->capabilities[] = (string)$capabilities;
        }
    }
public function addCapabilities ( $ capabilities ) { if ( is_array ( $ capabilities ) ) { $ this -> capabilities = array_merge ( ( array ) $ this -> capabilities , ( array ) $ capabilities ) ; } else { $ this -> capabilities [ ] = ( string ) $ capabilities ; } }
Add capabilities.

@param array|string $capabilities An array of capability strings or a single capability string.
Add capabilities .