code: public function naming($namer)
      {
          if ($namer instanceof \Closure) {
              $namer = new ClosureNamer($namer);
          }
          $this->namer = $namer;
          return $this;
      }
docs: Sets namer.
  
  @param \Closure|NamerInterface $namer
  @return $this