Chris@0: workflow = $workflow; Chris@0: $this->id = $id; Chris@0: $this->label = $label; Chris@0: $this->fromStateIds = $from_state_ids; Chris@0: $this->toStateId = $to_state_id; Chris@0: $this->weight = $weight; Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: public function id() { Chris@0: return $this->id; Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: public function label() { Chris@0: return $this->label; Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: public function from() { Chris@0: return $this->workflow->getStates($this->fromStateIds); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: public function to() { Chris@0: return $this->workflow->getState($this->toStateId); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: public function weight() { Chris@0: return $this->weight; Chris@0: } Chris@0: Chris@0: }