for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Resova\Endpoints;
use Resova\Client;
class Items extends Client
{
/**
* @var string
*/
protected $namespace = __CLASS__;
* Retrieve a item
* Retrieves the details of a item. Provide the unique id for the item.
*
* @param int $item_id The item id
* @return $this
public function __invoke(int $item_id): self
$this->item_id = $item_id;
item_id
// Set HTTP params
$this->type = 'get';
$this->endpoint = '/items/' . $item_id;
return $this;
}
* List all items
* Returns a list of your items. The items are returned sorted by creation date, with the most recent item appearing first.
public function all(): self
$this->endpoint = '/items';
* List all item booking questions
* Returns a list of your item booking questions.
* The items are returned sorted by creation date, with the most recent item appearing first.
public function booking_questions(): self
$this->endpoint = '/items/' . $this->item_id . '/booking_questions';
* List all item reviews
* Returns a list of your item reviews.
public function reviews(): self
$this->endpoint = '/items/' . $this->item_id . '/reviews';
* List all item extras
* Returns a list of your item extras.
public function extras(): self
$this->endpoint = '/items/' . $this->item_id . '/extras';