protected function addMeToNormalizer(InputNormalizerContract $normalizer)
    {
        foreach (['adjust', 'validate', 'cast'] as $action) {

            $normalizer->onAfter($action, function ($input, $resource, $locale) use ($action) {
                return $this->selfNormalize($action, $input, $resource, $locale);
            });

        }
    }
protected function addMeToNormalizer(InputNormalizerContract $normalizer)
    {
        foreach (['adjust', 'validate', 'cast'] as $action) {

            $normalizer->onAfter($action, function ($input, $resource, $locale) use ($action) {
                return $this->selfNormalize($action, $input, $resource, $locale);
            });

        }
    }
protected function addMeToNormalizer ( InputNormalizerContract $ normalizer ) { foreach ( [ 'adjust' , 'validate' , 'cast' ] as $ action ) { $ normalizer -> onAfter ( $ action , function ( $ input , $ resource , $ locale ) use ( $ action ) { return $ this -> selfNormalize ( $ action , $ input , $ resource , $ locale ) ; } ) ; } }
Add the class using this trait to the passed normalizer

@param InputNormalizerContract $normalizer
Add the class using this trait to the passed normalizer