for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
// Copyright 1999-2021. Plesk International GmbH.
namespace PleskX\Api\Operator;
use PleskX\Api\Struct\EventLog as Struct;
class EventLog extends \PleskX\Api\Operator
{
protected $_wrapperTag = 'event_log';
/**
* @return Struct\Event[]
*/
public function get()
$records = [];
$response = $this->request('get');
foreach ($response->event as $eventInfo) {
$records[] = new Struct\Event($eventInfo);
}
return $records;
* @return Struct\DetailedEvent[]
public function getDetailedLog()
$response = $this->request('get_events');
$records[] = new Struct\DetailedEvent($eventInfo);
* @return int
public function getLastId()
return (int) $this->request('get-last-id')->getValue('id');