PostApi code quality fix. Non implemented yet method removed.

This commit is contained in:
Alexey Skobkin 2016-12-12 21:32:56 +03:00
parent 7fbe9f8752
commit 68440c8531

View file

@ -28,24 +28,4 @@ class PostApi extends AbstractApi
{ {
return 'skobkin_point_tools_api_post'; return 'skobkin_point_tools_api_post';
} }
/**
* Get post with tags and comments by id
*
* @param $id
*
* @return Post[]
*/
public function getPostById($id)
{
if (!is_string($id)) {
throw new \InvalidArgumentException('$id must be an string');
}
$postData = $this->getGetRequestData('/api/post/'.$id, [], true);
$post = $this->postFactory->createFromArray($postData);
return $post;
}
} }