Skip to content

Commit

Permalink
mark deprecated functions since v4.0.0 n v6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
leemyongpakvn committed Oct 4, 2023
1 parent b79bfef commit b05b70d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions ProductComment.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,8 @@ public static function deleteUsefulness($id_product_comment)
* Report comment
*
* @return bool
*
* @deprecated 4.0.0 - migrated to controllers/front/ReportComment and src/Entity/ProductCommentReport
*/
public static function reportComment($id_product_comment, $id_customer)
{
Expand All @@ -450,6 +452,8 @@ public static function reportComment($id_product_comment, $id_customer)
* Comment already report
*
* @return bool
*
* @deprecated 4.0.0 - migrated to controllers/front/ReportComment and src/Entity/ProductCommentReport
*/
public static function isAlreadyReport($id_product_comment, $id_customer)
{
Expand All @@ -464,6 +468,8 @@ public static function isAlreadyReport($id_product_comment, $id_customer)
* Set comment usefulness
*
* @return bool
*
* @deprecated 4.0.0 - migrated to controllers/front/UpdateCommentUsefulness and src/Entity/ProductCommentUsefulness
*/
public static function setCommentUsefulness($id_product_comment, $usefulness, $id_customer)
{
Expand All @@ -476,6 +482,8 @@ public static function setCommentUsefulness($id_product_comment, $usefulness, $i
* Usefulness already set
*
* @return bool
*
* @deprecated 4.0.0 - migrated to controllers/front/UpdateCommentUsefulness and src/Entity/ProductCommentUsefulness
*/
public static function isAlreadyUsefulness($id_product_comment, $id_customer)
{
Expand Down
6 changes: 3 additions & 3 deletions ProductCommentCriterion.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ProductCommentCriterion extends ObjectModel
];

/**
* @deprecated 6.0.0
* @deprecated 6.0.0 - migrated to src/Repository/ProductCommentCriterionRepository
*/
public function delete()
{
Expand Down Expand Up @@ -100,7 +100,7 @@ public function update($nullValues = false)
*
* @return bool succeed
*
* @deprecated 6.0.0
* @deprecated 6.0.0 - migrated to src/Repository/ProductCommentCriterionRepository
*/
public function addProduct($id_product)
{
Expand All @@ -119,7 +119,7 @@ public function addProduct($id_product)
*
* @return bool succeed
*
* @deprecated 6.0.0
* @deprecated 6.0.0 - migrated to src/Repository/ProductCommentCriterionRepository
*/
public function addCategory($id_category)
{
Expand Down

0 comments on commit b05b70d

Please sign in to comment.