Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
Update CommentResourceModel
Browse files Browse the repository at this point in the history
  • Loading branch information
zibios committed Mar 5, 2017
1 parent ed5d155 commit b381d91
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/Model/Comment/CommentResourceModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,18 @@ class CommentResourceModel extends AbstractModel implements ResourceModelInterfa
*/
protected $createdDate;

/**
* Updated date.
*
* Format: yyyy-MM-dd'T'HH:mm:ss'Z'
*
* @SA\Type("string")
* @SA\SerializedName("updatedDate")
*
* @var string|null
*/
protected $updatedDate;

/**
* ID of related task. Only one of taskId/folderId fields is present.
*
Expand Down Expand Up @@ -166,6 +178,26 @@ public function setCreatedDate($createdDate)
return $this;
}

/**
* @return null|string
*/
public function getUpdatedDate()
{
return $this->updatedDate;
}

/**
* @param null|string $updatedDate
*
* @return $this
*/
public function setUpdatedDate($updatedDate)
{
$this->updatedDate = $updatedDate;

return $this;
}

/**
* @return null|string
*/
Expand Down
1 change: 1 addition & 0 deletions tests/Model/Comment/CommentResourceModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class CommentResourceModelTest extends ResourceModelTestCase
'authorId',
'text',
'createdDate',
'updatedDate',
'taskId',
'folderId',
];
Expand Down

0 comments on commit b381d91

Please sign in to comment.