protected function _addSubcontent(AbstractClassContent $value)
    {
        if (!$this->_subcontent->indexOf($value)) {
            $this->_subcontent->add($value);
        }

        $this->subcontentmap[$value->getUid()] = $this->_subcontent->indexOf($value);

        return $value->getUid();
    }
protected function _addSubcontent(AbstractClassContent $value)
    {
        if (!$this->_subcontent->indexOf($value)) {
            $this->_subcontent->add($value);
        }

        $this->subcontentmap[$value->getUid()] = $this->_subcontent->indexOf($value);

        return $value->getUid();
    }
protected function _addSubcontent ( AbstractClassContent $ value ) { if ( ! $ this -> _subcontent -> indexOf ( $ value ) ) { $ this -> _subcontent -> add ( $ value ) ; } $ this -> subcontentmap [ $ value -> getUid ( ) ] = $ this -> _subcontent -> indexOf ( $ value ) ; return $ value -> getUid ( ) ; }
Adds a subcontent to the collection.

@param \BackBee\ClassContent\AbstractClassContent $value

@return string the unique identifier of the add subcontent
Adds a subcontent to the collection .