for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the DigitalOceanV2 library.
*
* (c) Antoine Corcy <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace DigitalOceanV2\Entity;
/**
* @author Antoine Corcy <[email protected]>
* @author Graham Campbell <[email protected]>
final class Action extends AbstractEntity
{
* @var int
public $id;
* @var string
public $status;
public $type;
public $startedAt;
public $completedAt;
public $resourceId;
public $resourceType;
* @var Region
public $region;
public $regionSlug;
* @param array $parameters
public function build(array $parameters)
parent::build($parameters);
foreach ($parameters as $property => $value) {
if ('region' === $property && is_object($value)) {
$this->region = new Region($value);
}
* @param string $completedAt
public function setCompletedAt($completedAt)
$this->completedAt = static::convertDateTime($completedAt);
* @param string $startedAt
public function setStartedAt($startedAt)
$this->startedAt = static::convertDateTime($startedAt);