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

            if (!$isset && $this->hasMapping($key)) {
                return (bool) $this->mapAttribute($key);
            }

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

            if (!$isset && $this->hasMapping($key)) {
                return (bool) $this->mapAttribute($key);
            }

            return $next($isset, $args);
        };
    }
public function __issetHook ( ) { return function ( $ next , $ isset , $ args ) { $ key = $ args -> get ( 'key' ) ; if ( ! $ isset && $ this -> hasMapping ( $ key ) ) { return ( bool ) $ this -> mapAttribute ( $ key ) ; } return $ next ( $ isset , $ args ) ; } ; }
Register hook on isset call.

@codeCoverageIgnore

@return \Closure
Register hook on isset call .