<?php declare(strict_types=1); /* * Copyright (c) Ne-Lexa * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * * @see https://github.com/Ne-Lexa/google-play-scraper */ namespace Nelexa\GPlay\Model; use Nelexa\GPlay\GPlayApps; /** * Contains the developer’s reply to a review in the Google Play store. * * @see Review Contains review of application on Google Play store. * @see GPlayApps::getReviews() Returns reviews of the * Android app in the Google Play store. */ class ReplyReview implements \JsonSerializable { use JsonSerializableTrait; /** @var \DateTimeInterface Reply date. */ private $date; /** @var string Reply text. */ private $text; /** * Creates an object with information about the developer’s response * to a review of an application in the Google Play store. * * @param \DateTimeInterface $date reply date * @param string $text reply text */ public function __construct(\DateTimeInterface $date, string $text) { $this->date = $date; $this->text = $text; } /** * Returns reply date. * * @return \DateTimeInterface reply date */ public function getDate(): \DateTimeInterface { return $this->date; } /** * Returns reply text. * * @return string reply text */ public function getText(): string { return $this->text; } /** * Returns class properties as an array. * * @return array class properties as an array */ public function asArray(): array { return [ 'date' => $this->date->format(\DateTime::RFC3339), 'timestamp' => $this->date->getTimestamp(), 'text' => $this->text, ]; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Builder | Folder | 0755 |
|
|
App.php | File | 7.76 KB | 0644 |
|
AppId.php | File | 3.71 KB | 0644 |
|
AppInfo.php | File | 14.86 KB | 0644 |
|
Category.php | File | 2.64 KB | 0644 |
|
ClusterPage.php | File | 1.37 KB | 0644 |
|
Developer.php | File | 7.02 KB | 0644 |
|
GoogleImage.php | File | 24.22 KB | 0644 |
|
HistogramRating.php | File | 3.23 KB | 0644 |
|
ImageInfo.php | File | 3.26 KB | 0644 |
|
JsonSerializableTrait.php | File | 1.14 KB | 0644 |
|
Permission.php | File | 1.63 KB | 0644 |
|
ReplyReview.php | File | 1.83 KB | 0644 |
|
Review.php | File | 4.98 KB | 0644 |
|
Video.php | File | 2.32 KB | 0644 |
|