Skip to content

Commit 4285005

Browse files
committed
Close #65
1 parent 35e74d0 commit 4285005

File tree

5 files changed

+2
-37
lines changed

5 files changed

+2
-37
lines changed

src/Contracts/Schema/ResourceObjectInterface.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,6 @@ public function getIncludedResourceLinks();
105105
*/
106106
public function isShowAttributesInIncluded();
107107

108-
/**
109-
* If resource relationships should be shown for included resources.
110-
*
111-
* @return bool
112-
*/
113-
public function isShowRelationshipsInIncluded();
114-
115108
/**
116109
* If original data we part of an array of elements.
117110
*

src/Contracts/Schema/SchemaProviderInterface.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,6 @@ public function getIncludedResourceLinks($resource);
102102
*/
103103
public function isShowAttributesInIncluded();
104104

105-
/**
106-
* If links be shown for included resources.
107-
*
108-
* @return bool
109-
*/
110-
public function isShowRelationshipsInIncluded();
111-
112105
/**
113106
* Get schema default include paths.
114107
*

src/Encoder/Parser/ParserManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function isShouldParseRelationships(
5555
StackReadOnlyInterface $stack
5656
) {
5757
list($onTheWay, $parentIsTarget) = $this->foundInPaths($stack);
58-
$shouldContinue = $onTheWay || ($parentIsTarget && $resource->isShowRelationshipsInIncluded());
58+
$shouldContinue = $onTheWay || $parentIsTarget;
5959
return $shouldContinue;
6060
}
6161

src/Schema/ResourceObject.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,6 @@ public function isShowAttributesInIncluded()
207207
return $this->schema->isShowAttributesInIncluded();
208208
}
209209

210-
/**
211-
* @inheritdoc
212-
*/
213-
public function isShowRelationshipsInIncluded()
214-
{
215-
return $this->schema->isShowRelationshipsInIncluded();
216-
}
217-
218210
/**
219211
* @inheritdoc
220212
*/

src/Schema/SchemaProvider.php

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@ abstract class SchemaProvider implements SchemaProviderInterface
8484
*/
8585
protected $isShowAttributesInIncluded = true;
8686

87-
/**
88-
* @var bool
89-
*/
90-
protected $isShowRelShipsInIncluded = true;
91-
9287
/**
9388
* @var SchemaFactoryInterface
9489
*/
@@ -106,7 +101,7 @@ abstract class SchemaProvider implements SchemaProviderInterface
106101
public function __construct(SchemaFactoryInterface $factory, ContainerInterface $container)
107102
{
108103
assert('is_string($this->resourceType) && empty($this->resourceType) === false', 'Resource type not set');
109-
assert('is_bool($this->isShowSelfInIncluded) && is_bool($this->isShowRelShipsInIncluded)');
104+
assert('is_bool($this->isShowSelfInIncluded)');
110105
assert('is_string($this->selfSubUrl) && empty($this->selfSubUrl) === false', '\'self\' sub-URL not set');
111106
assert('substr($this->selfSubUrl, -1) === \'/\'', 'Sub-url should end with \'/\' separator');
112107

@@ -178,14 +173,6 @@ public function isShowAttributesInIncluded()
178173
return $this->isShowAttributesInIncluded;
179174
}
180175

181-
/**
182-
* @inheritdoc
183-
*/
184-
public function isShowRelationshipsInIncluded()
185-
{
186-
return $this->isShowRelShipsInIncluded;
187-
}
188-
189176
/**
190177
* Get resource links.
191178
*

0 commit comments

Comments
 (0)