Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/storage/DrydockLog.php
<?php | <?php | ||||
final class DrydockLog extends DrydockDAO | final class DrydockLog extends DrydockDAO | ||||
implements PhabricatorPolicyInterface { | implements PhabricatorPolicyInterface { | ||||
protected $resourceID; | protected $resourceID; | ||||
protected $leaseID; | protected $leaseID; | ||||
protected $epoch; | protected $epoch; | ||||
protected $message; | protected $message; | ||||
private $resource = self::ATTACHABLE; | private $resource = self::ATTACHABLE; | ||||
private $lease = self::ATTACHABLE; | private $lease = self::ATTACHABLE; | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_TIMESTAMPS => false, | self::CONFIG_TIMESTAMPS => false, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'resourceID' => 'id?', | |||||
'leaseID' => 'id?', | |||||
'message' => 'text', | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function attachResource(DrydockResource $resource = null) { | public function attachResource(DrydockResource $resource = null) { | ||||
$this->resource = $resource; | $this->resource = $resource; | ||||
return $this; | return $this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |