Skip to content
This repository was archived by the owner on Jan 2, 2023. It is now read-only.

Commit 6012cfc

Browse files
committed
Merge pull request #39 from vinkla/readme
Fix abstract serializer in readme
2 parents ef35378 + 78612cf commit 6012cfc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ A JSON-API Document may contain one primary Element. The primary Element will be
5151

5252
### Serializers
5353

54-
A Serializer is responsible for constructing Element (Resource/Collection) objects for a certain resource type. Serializers should extend `Tobscure\JsonApi\SerializerAbstract`. At a minimum, a serializer must specify its **type** and provide a method to transform **attributes**:
54+
A Serializer is responsible for constructing Element (Resource/Collection) objects for a certain resource type. Serializers should extend `Tobscure\JsonApi\AbstractSerializer`. At a minimum, a serializer must specify its **type** and provide a method to transform **attributes**:
5555

5656
```php
57-
use Tobscure\JsonApi\SerializerAbstract;
57+
use Tobscure\JsonApi\AbstractSerializer;
5858

59-
class PostSerializer extends SerializerAbstract
59+
class PostSerializer extends AbstractSerializer
6060
{
6161
protected $type = 'posts';
6262

0 commit comments

Comments
 (0)