Skip to content

Commit aa6aa3c

Browse files
author
n.gnato
committed
Prepare dto extracting
1 parent c98539e commit aa6aa3c

File tree

8 files changed

+29
-0
lines changed

8 files changed

+29
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
### Deprecated
10+
- mark classes in namespace FreeElephants\JsonApiToolkit\DTO are deprecated
11+
912
### Changed
1013
- Add conflict with origin neomerx/json-api (use fork laravel-json-api/neomerx-json-api for best php 8.* support)
14+
- Use DTO from free-elephants/json-api-dto
1115

1216
## [0.0.15] - 2025-02-06
1317

src/FreeElephants/JsonApiToolkit/DTO/AbstractAttributes.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace FreeElephants\JsonApiToolkit\DTO;
44

5+
/**
6+
* @deprecated
7+
* @see \FreeElephants\JsonApi\DTO\AbstractAttributes
8+
*/
59
abstract class AbstractAttributes extends BaseKeyValueStructure
610
{
711
}

src/FreeElephants/JsonApiToolkit/DTO/AbstractDocument.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
use Psr\Http\Message\MessageInterface;
66

77
/**
8+
* @deprecated
9+
* @see \FreeElephants\JsonApi\DTO\AbstractDocument
810
* @property AbstractResourceObject|mixed $data
911
*/
1012
abstract class AbstractDocument

src/FreeElephants/JsonApiToolkit/DTO/AbstractRelationships.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace FreeElephants\JsonApiToolkit\DTO;
44

5+
/**
6+
* @deprecated
7+
* @see \FreeElephants\JsonApi\DTO\AbstractRelationships
8+
*/
59
abstract class AbstractRelationships
610
{
711
public function __construct(array $data)

src/FreeElephants/JsonApiToolkit/DTO/AbstractResourceObject.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
use FreeElephants\JsonApiToolkit\DTO\Reflection\SuitableRelationshipsTypeDetector;
66

77
/**
8+
*
9+
* @deprecated
10+
* @see \FreeElephants\JsonApi\DTO\AbstractResourceObject
811
* @property AbstractAttributes $attributes
912
* @property AbstractRelationships $relationships
1013
*/

src/FreeElephants/JsonApiToolkit/DTO/BaseKeyValueStructure.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace FreeElephants\JsonApiToolkit\DTO;
44

5+
/**
6+
* @deprecated
7+
* @see \FreeElephants\JsonApi\DTO\BaseKeyValueStructure
8+
*/
59
class BaseKeyValueStructure
610
{
711
public function __construct(array $attributes)

src/FreeElephants/JsonApiToolkit/DTO/RelationshipToOne.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace FreeElephants\JsonApiToolkit\DTO;
44

5+
/**
6+
* @deprecated
7+
* @see \FreeElephants\JsonApi\DTO\RelationshipToOne
8+
*/
59
class RelationshipToOne extends AbstractDocument
610
{
711
public ResourceIdentifierObject $data;

src/FreeElephants/JsonApiToolkit/DTO/ResourceIdentifierObject.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace FreeElephants\JsonApiToolkit\DTO;
44

5+
/**
6+
* @deprecated
7+
* @see \FreeElephants\JsonApi\DTO\ResourceIdentifierObject
8+
*/
59
class ResourceIdentifierObject
610
{
711
public string $id;

0 commit comments

Comments
 (0)