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