src/event/ValueEvent.php
/**
     * Determine whether to unwrap a taggedValue value.
     *
     * @return bool if it should be unwrapped
     */
Determine whether to unwrap a taggedValue value.
@return bool if it should be unwrapped
Determine whether to unwrap a taggedValue value . @return bool if it should be unwrapped
private function unwrapTaggedValue()
    {
        if (0 === strpos($this->name, TaggedValue::class)) {
            return false;
        }
        return $this->_value instanceof TaggedValue;
    }
private function unwrapTaggedValue ( ) { if ( 0 === strpos ( $ this -> name , TaggedValue :: class ) ) { return false ; } return $ this -> _value instanceof TaggedValue ; }
Determine whether to unwrap a taggedValue value.
Determine whether to unwrap a taggedValue value .
// if the event name is the TaggedValue class, then the event // handlers will be expecting a TaggedValue object, so we shouldn't // unwrap it // otherwise, we only want to attempt to unrap a TaggedValue if it // actually is a TaggedValue object.