protected function getAttributeHydrator($book): array
    {
        return [
            "title" => function (array $book, $attribute, $data) {
                $book["title"] = $attribute;
                return $book;
            },
            "pages" => function (array &$book, $attribute, $data) {
                $book["pages"] = $attribute;
            }
        ];
    }