/** * Get comments repository for given context * @param string $context * @return Comments */ public function commentsForContext($context) { $repository = new Comments($this); $repository->setContext($context); return $repository; }
/** * Get comments repository for this task * @return Comments */ public function comments() { $comments = new Comments($this->repository->getApiClient()); $comments->setContext($this->getContext()); return $comments; }
public function attachments() { return $this->repository->getApiClient()->attachmentsForContext($this->repository->getContext()); }