src/ResolvedCollection.php
public function add($key, $value)
    {
        parent::add($key, $value);

        if (is_object($value) === false) {
            return;
        }

        $this->classMapping[get_class($value)][] = $key;
    }
public function add($key, $value)
    {
        parent::add($key, $value);

        if (is_object($value) === false) {
            return;
        }

        $this->classMapping[get_class($value)][] = $key;
    }
public function add ( $ key , $ value ) { parent :: add ( $ key , $ value ) ; if ( is_object ( $ value ) === false ) { return ; } $ this -> classMapping [ get_class ( $ value ) ] [ ] = $ key ; }
Add resolved resource to the collection.

@param string $key
@param mixed $value
Add resolved resource to the collection .