메소드 | 설명 | |
---|---|---|
__construct ( Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface $parameters, Neomerx\JsonApi\Contracts\Schema\ContainerInterface $container ) | Constructor. | |
getIncludeRelationships ( $path, $type ) | ||
getParameters ( ) | ||
hasSomeFields ( $type ) | ||
isPathIncluded ( $path, $type ) |
메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
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 |