Changeset View
Changeset View
Standalone View
Standalone View
src/applications/nuance/command/NuanceCommandImplementation.php
Show All 13 Lines | abstract class NuanceCommandImplementation | ||||
final public function getActor() { | final public function getActor() { | ||||
return $this->actor; | return $this->actor; | ||||
} | } | ||||
abstract public function getCommandName(); | abstract public function getCommandName(); | ||||
abstract public function canApplyToItem(NuanceItem $item); | abstract public function canApplyToItem(NuanceItem $item); | ||||
public function canApplyImmediately( | |||||
NuanceItem $item, | |||||
NuanceItemCommand $command) { | |||||
return false; | |||||
} | |||||
abstract protected function executeCommand( | abstract protected function executeCommand( | ||||
NuanceItem $item, | NuanceItem $item, | ||||
NuanceItemCommand $command); | NuanceItemCommand $command); | ||||
final public function applyCommand( | final public function applyCommand( | ||||
NuanceItem $item, | NuanceItem $item, | ||||
NuanceItemCommand $command) { | NuanceItemCommand $command) { | ||||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |