src/Mappable/Hooks.php
public function __unsetHook()
    {
        return function ($next, $value, $args) {
            $key = $args->get('key');

            if ($this->hasMapping($key)) {
                return $this->forget($key);
            }

            return $next($value, $args);
        };
    }
public function __unsetHook()
    {
        return function ($next, $value, $args) {
            $key = $args->get('key');

            if ($this->hasMapping($key)) {
                return $this->forget($key);
            }

            return $next($value, $args);
        };
    }
public function __unsetHook ( ) { return function ( $ next , $ value , $ args ) { $ key = $ args -> get ( 'key' ) ; if ( $ this -> hasMapping ( $ key ) ) { return $ this -> forget ( $ key ) ; } return $ next ( $ value , $ args ) ; } ; }
Register hook on unset call.

@codeCoverageIgnore

@return \Closure
Register hook on unset call .