Method | Description | |
---|---|---|
__construct ( Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface $parameters, Neomerx\JsonApi\Contracts\Schema\ContainerInterface $container ) | Constructor. | |
getIncludeRelationships ( $path, $type ) | ||
getParameters ( ) | ||
hasSomeFields ( $type ) | ||
isPathIncluded ( $path, $type ) |
Method | Description | |
---|---|---|
hasExactPathMatch ( array $paths, string $path ) : boolean | If path has exact match with one of the 'include' paths. | |
hasMatchWithIncludedPaths ( array $paths, string $path ) : boolean | If path matches one of the included paths. |
Method | Description | |
---|---|---|
getIncludePathsByType ( string $type ) : string[] | ||
getRelationshipNameForResource ( string $curPath, integer $pathLength ) : string | ||
getRelationshipNameForTopResource ( string $curPath ) : string |
public __construct ( Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface $parameters, Neomerx\JsonApi\Contracts\Schema\ContainerInterface $container ) | ||
$parameters | Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface | |
$container | Neomerx\JsonApi\Contracts\Schema\ContainerInterface |