public function getTagged(int $tag): TaggedType
    {
        if (!$this->hasTagged($tag)) {
            throw new \LogicException("No tagged element for tag $tag.");
        }
        return $this->_taggedMap[$tag];
    }
public function getTagged(int $tag): TaggedType
    {
        if (!$this->hasTagged($tag)) {
            throw new \LogicException("No tagged element for tag $tag.");
        }
        return $this->_taggedMap[$tag];
    }
public function getTagged ( int $ tag ) : TaggedType { if ( ! $ this -> hasTagged ( $ tag ) ) { throw new \ LogicException ( "No tagged element for tag $tag." ) ; } return $ this -> _taggedMap [ $ tag ] ; }
Get a context specific element tagged with a given tag.

@param int $tag
@throws \LogicException If tag doesn't exists
@return TaggedType
Get a context specific element tagged with a given tag .