Changeset View
Changeset View
Standalone View
Standalone View
src/applications/tokens/storage/PhabricatorTokenGiven.php
<?php | <?php | ||||
final class PhabricatorTokenGiven extends PhabricatorTokenDAO | final class PhabricatorTokenGiven extends PhabricatorTokenDAO | ||||
implements PhabricatorPolicyInterface { | implements PhabricatorPolicyInterface { | ||||
protected $authorPHID; | protected $authorPHID; | ||||
protected $objectPHID; | protected $objectPHID; | ||||
protected $tokenPHID; | protected $tokenPHID; | ||||
private $object = self::ATTACHABLE; | private $object = self::ATTACHABLE; | ||||
public function getConfiguration() { | |||||
return array( | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'key_all' => array( | |||||
'columns' => array('objectPHID', 'authorPHID'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | |||||
} | |||||
public function attachObject(PhabricatorTokenReceiverInterface $object) { | public function attachObject(PhabricatorTokenReceiverInterface $object) { | ||||
$this->object = $object; | $this->object = $object; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getObject() { | public function getObject() { | ||||
return $this->assertAttached($this->object); | return $this->assertAttached($this->object); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |