Skip to content

Commit

Permalink
Add AbstractComment
Browse files Browse the repository at this point in the history
  • Loading branch information
uryvskiy-dima committed Feb 5, 2024
1 parent 8ddc49c commit 11ee964
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,21 @@
/**
* PHP version 7.3
*
* @category TaskCommentHistory
* @category AbstractCustomer
* @package RetailCrm\Api\Model\Entity\Tasks
*/

namespace RetailCrm\Api\Model\Entity\Tasks;

use RetailCrm\Api\Component\Serializer\Annotation as JMS;

class TaskCommentHistory
/**
* Class AbstractComment
*
* @category AbstractCustomer
* @package RetailCrm\Api\Model\Entity\Tasks
*/
class AbstractComment
{
/**
* @var int
Expand Down
22 changes: 3 additions & 19 deletions src/Model/Entity/Tasks/TaskComment.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* PHP version 7.3
*
* @category TaskCommentHistory
* @category TaskComment
* @package RetailCrm\Api\Model\Entity\Tasks
*/

Expand All @@ -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
*
Expand Down
4 changes: 2 additions & 2 deletions src/Model/Entity/Tasks/TaskHistory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions src/Model/Response/Tasks/TasksHistoryResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
/**
Expand Down

0 comments on commit 11ee964

Please sign in to comment.