public function normalize($normalizer)
    {
        if (is_string($normalizer) && isset($this->normalizers[$normalizer])) {

            $this->normalizer = $this->normalizers[$normalizer];

        } else if ($normalizer instanceof NormalizerInterface) {

            $this->normalizer = $normalizer;

        }

        return $this;
    }
public function normalize($normalizer)
    {
        if (is_string($normalizer) && isset($this->normalizers[$normalizer])) {

            $this->normalizer = $this->normalizers[$normalizer];

        } else if ($normalizer instanceof NormalizerInterface) {

            $this->normalizer = $normalizer;

        }

        return $this;
    }
public function normalize ( $ normalizer ) { if ( is_string ( $ normalizer ) && isset ( $ this -> normalizers [ $ normalizer ] ) ) { $ this -> normalizer = $ this -> normalizers [ $ normalizer ] ; } else if ( $ normalizer instanceof NormalizerInterface ) { $ this -> normalizer = $ normalizer ; } return $ this ; }
Set a normalizer by string or a normalizer instance
@param string|NormalizerInterface $normalizer
@return $this
Set a normalizer by string or a normalizer instance