diff --git a/src/Model/Entity/Tasks/TaskCommentHistory.php b/src/Model/Entity/Tasks/AbstractComment.php similarity index 72% rename from src/Model/Entity/Tasks/TaskCommentHistory.php rename to src/Model/Entity/Tasks/AbstractComment.php index 6b861be8..a23e9ef0 100644 --- a/src/Model/Entity/Tasks/TaskCommentHistory.php +++ b/src/Model/Entity/Tasks/AbstractComment.php @@ -3,7 +3,7 @@ /** * PHP version 7.3 * - * @category TaskCommentHistory + * @category AbstractCustomer * @package RetailCrm\Api\Model\Entity\Tasks */ @@ -11,7 +11,13 @@ use RetailCrm\Api\Component\Serializer\Annotation as JMS; -class TaskCommentHistory +/** + * Class AbstractComment + * + * @category AbstractCustomer + * @package RetailCrm\Api\Model\Entity\Tasks + */ +class AbstractComment { /** * @var int diff --git a/src/Model/Entity/Tasks/TaskComment.php b/src/Model/Entity/Tasks/TaskComment.php index 0d4c3b02..7380c2f4 100644 --- a/src/Model/Entity/Tasks/TaskComment.php +++ b/src/Model/Entity/Tasks/TaskComment.php @@ -3,7 +3,7 @@ /** * PHP version 7.3 * - * @category TaskCommentHistory + * @category TaskComment * @package RetailCrm\Api\Model\Entity\Tasks */ @@ -13,29 +13,13 @@ use RetailCrm\Api\Component\Serializer\Annotation as JMS; /** - * Class TaskCommentHistory + * Class TaskComment * * @category TaskHistory * @package RetailCrm\Api\Model\Entity\Tasks */ -class TaskComment +class TaskComment extends AbstractComment { - /** - * @var int - * - * @JMS\Type("int") - * @JMS\SerializedName("id") - */ - public $id; - - /** - * @var string - * - * @JMS\Type("string") - * @JMS\SerializedName("text") - */ - public $text; - /** * @var int * diff --git a/src/Model/Entity/Tasks/TaskHistory.php b/src/Model/Entity/Tasks/TaskHistory.php index 24e2704a..38e6d876 100644 --- a/src/Model/Entity/Tasks/TaskHistory.php +++ b/src/Model/Entity/Tasks/TaskHistory.php @@ -101,9 +101,9 @@ class TaskHistory public $task; /** - * @var \RetailCrm\Api\Model\Entity\Tasks\TaskCommentHistory + * @var \RetailCrm\Api\Model\Entity\Tasks\AbstractComment * - * @JMS\Type("RetailCrm\Api\Model\Entity\Tasks\TaskCommentHistory") + * @JMS\Type("RetailCrm\Api\Model\Entity\Tasks\AbstractComment") * @JMS\SerializedName("comment") */ public $comment; diff --git a/src/Model/Response/Tasks/TasksHistoryResponse.php b/src/Model/Response/Tasks/TasksHistoryResponse.php index 4f8d4a6c..abd07dcf 100644 --- a/src/Model/Response/Tasks/TasksHistoryResponse.php +++ b/src/Model/Response/Tasks/TasksHistoryResponse.php @@ -13,6 +13,12 @@ use RetailCrm\Api\Component\Serializer\Annotation as JMS; use RetailCrm\Api\Model\Response\AbstractPaginatedResponse; +/** + * Class TasksHistoryResponse + * + * @category TasksHistoryResponse + * @package RetailCrm\Api\Model\Response\Tasks + */ class TasksHistoryResponse extends AbstractPaginatedResponse { /**