protected function serializer()
    {
        if (null === $this->serializer) {
            $self = $this;
            $this->serializer = Closure::bind($this->bindSerializer(), null, $this->class);
        }
        return $this->serializer;
    }