getPHID() == $this->getUserPHID()); } public function describeAutomaticCapability($capability) { return null; } public function attachPreemptingEvents(array $events) { $this->preemptingEvents = $events; return $this; } public function getPreemptingEvents() { return $this->assertAttached($this->preemptingEvents); } public function isPreempted() { if ($this->getDateEnded() !== null) { return false; } foreach ($this->getPreemptingEvents() as $event) { if ($event->getDateEnded() === null && $event->getObjectPHID() != $this->getObjectPHID()) { return true; } } return false; } }