for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ZpgRtf\Methods;
use ZpgRtf\Objects\BranchObject;
use ZpgRtf\Objects\ListingObject;
use ZpgRtf\Objects\ListingDeleteObject;
/**
* The listing method allows you to list, update or delete listings on the ZPG rtf.
*/
class ListingMethod extends AbstractMethod
{
/** @var string */
const UPDATE_SCHEMA = 'http://realtime-listings.webservices.zpg.co.uk/docs/v1.2/schemas/listing/update.json';
const LIST_SCHEMA = 'http://realtime-listings.webservices.zpg.co.uk/docs/v1.2/schemas/listing/list.json';
const DELETE_SCHEMA = 'http://realtime-listings.webservices.zpg.co.uk/docs/v1.2/schemas/listing/delete.json';
* @return \GuzzleHttp\Psr7\Response
public function getList(BranchObject $branchObject)
return $this->validateAndSend(self::LIST_SCHEMA, 'listing/list', $branchObject);
}
public function sendUpdate(ListingObject $listingObject)
return $this->validateAndSend(self::UPDATE_SCHEMA, 'listing/update', $listingObject);
public function sendDelete(ListingDeleteObject $listingDeleteObject)
return $this->validateAndSend(self::DELETE_SCHEMA, 'listing/delete', $listingDeleteObject);