Skip to content

Commit

Permalink
wl-35746: Add is_verified to ReviewElementApi
Browse files Browse the repository at this point in the history
+review WL-37167
  • Loading branch information
Varrah committed Apr 18, 2022
1 parent ddc22f2 commit b59156e
Showing 1 changed file with 102 additions and 40 deletions.
142 changes: 102 additions & 40 deletions WellnessLiving/Wl/Review/ReviewList/ReviewElementModel.php
Original file line number Diff line number Diff line change
@@ -1,41 +1,103 @@
<?php

namespace WellnessLiving\Wl\Review\ReviewList;

use WellnessLiving\WlModelAbstract;

/**
* Retrieves information about review element.
*/
class ReviewElementModel extends WlModelAbstract
{
/**
* Review identifier.
*
* <tt>null</tt> if not set yet.
*
* @get result
* @var array|null
*/
public $a_review = null;

/**
* Review identifier.
*
* <tt>null</tt> if not set yet.
*
* @get get
* @var string|null
*/
public $k_review = null;

/**
* User ID.
*
* @get get
* @var string|null
*/
public $uid = null;
}

<?php

namespace WellnessLiving\Wl\Review\ReviewList;

use WellnessLiving\WlModelAbstract;

/**
* Retrieves information about review item.
*/
class ReviewElementModel extends WlModelAbstract
{
/**
* Review data:
* <dl>
* <dt>
* string <var>dt_add</var>
* </dt>
* <dd>
* Date when review was added by user.
* </dd>
* <dt>
* float <var>f_rate</var>
* </dt>
* <dt>
* bool <var>is_verify</var>
* </dt>
* <dd>
* <tt>true</tt> if review is verified, <tt>false</tt> otherwise.
* </dd>
* <dd>
* Review rate.
* </dd>
* <dt>
* string <var>s_firstname</var>
* </dt>
* <dd>
* Client's first name who added review.
* </dd>
* <dt>
* string <var>s_lastname</var>
* </dt>
* <dd>
* Client's last name who added review.
* </dd>
* <dt>
* string <var>s_reply</var>
* </dt>
* <dd>
* Staff reply. Can be empty.
* </dd>
* <dt>
* string <var>s_text</var>
* </dt>
* <dd>
* Review text.
* </dd>
* <dt>
* string <var>uid</var>
* </dt>
* <dd>
* User key.
* </dd>
* <dt>
* string <var>url_logo</var>
* </dt>
* <dd>
* User logo.
* </dd>
* </dl>
*
* @get result
* @var array
*/
public $a_review;

/**
* Key of the business to which the review belongs.
*
* @get get
* @var string
*/
public $k_business;

/**
* Review primary key in {@link \RsReviewSql}.
*
* @get get
* @var string
*/
public $k_review = '0';

/**
* User primary key in {@link \PassportLoginSql}.
*
* May be empty for a case of quest.
*
* @get get
* @var string
*/
public $uid = '0';
}

?>

0 comments on commit b59156e

Please sign in to comment.