src/Observing/Observer.php
public function attachObject(LifeCyclableInterface $object): ObservedInterface
    {
        $objectHash = \spl_object_hash($object);
        //Create the observed instance to manage the observation
        $observed = $this->observedFactory->create($this, $object);
        $object->registerObserver($observed);

        $this->observedList[$objectHash] = $observed;

        return $observed;
    }
public function attachObject(LifeCyclableInterface $object): ObservedInterface
    {
        $objectHash = \spl_object_hash($object);
        //Create the observed instance to manage the observation
        $observed = $this->observedFactory->create($this, $object);
        $object->registerObserver($observed);

        $this->observedList[$objectHash] = $observed;

        return $observed;
    }
{@inheritdoc}