src/SharedData.php
public static function addSharedToArgs($arguments = [], $value, $key = null) {
        /** @var SharedDataInterface $instance */
        if (($instance = static::instanceFromArguments($arguments)) === null) {
            return null;
        }
        return $instance->addData($value, $key);
    }
public static function addSharedToArgs($arguments = [], $value, $key = null) {
        /** @var SharedDataInterface $instance */
        if (($instance = static::instanceFromArguments($arguments)) === null) {
            return null;
        }
        return $instance->addData($value, $key);
    }
public static function addSharedToArgs ( $ arguments = [ ] , $ value , $ key = null ) { /** @var SharedDataInterface $instance */ if ( ( $ instance = static :: instanceFromArguments ( $ arguments ) ) === null ) { return null ; } return $ instance -> addData ( $ value , $ key ) ; }
Add data to chain instance from function arguments
@param array  $arguments
@param mixed  $value
@param string $key
@return SharedDataInterface|null
Add data to chain instance from function arguments