public function put(Option $option, OptionRepository $repository): Option
    {
        $this->map[$option->getKey()] = [
            self::SUBKEY_OPTION     => $option,
            self::SUBKEY_REPOSITORY => $repository,
        ];

        return $option;
    }
public function put(Option $option, OptionRepository $repository): Option
    {
        $this->map[$option->getKey()] = [
            self::SUBKEY_OPTION     => $option,
            self::SUBKEY_REPOSITORY => $repository,
        ];

        return $option;
    }
public function put ( Option $ option , OptionRepository $ repository ) : Option { $ this -> map [ $ option -> getKey ( ) ] = [ self :: SUBKEY_OPTION => $ option , self :: SUBKEY_REPOSITORY => $ repository , ] ; return $ option ; }
Put a new association into the identity map.

@since 0.1.0

@param Option           $option     Option to store for the given key.
@param OptionRepository $repository Repository to store for the given key.

@return Option $option Option that was stored in the identity map. This might differ from the passed-in $option.
Put a new association into the identity map .