public function getSerializer(): Serializer
    {
        if ($this->serializer) {
            return $this->serializer;
        }

        return $this->serializer = new Serializer([new ModelNormalizer()], [new JsonEncoder()]);
    }
public function getSerializer(): Serializer
    {
        if ($this->serializer) {
            return $this->serializer;
        }

        return $this->serializer = new Serializer([new ModelNormalizer()], [new JsonEncoder()]);
    }
public function getSerializer ( ) : Serializer { if ( $ this -> serializer ) { return $ this -> serializer ; } return $ this -> serializer = new Serializer ( [ new ModelNormalizer ( ) ] , [ new JsonEncoder ( ) ] ) ; }
Returns the serializer

@return Serializer
Returns the serializer