neomerx / json-api

Framework agnostic JSON API (jsonapi.org) implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor BaseQueryParser into PHP trait to improve flexibility

neomerx opened this issue · comments

Currently BaseQueryParser occupies such method names as getFields ,getIncludes and getSorts. If they are moved into PHP trait developers would be able to change their names while importing/using. In its turn, it allows reusing getFields, getIncludes and getSorts with a different list of input parameters and return types if needed.