/** * @param Row $row * @param Entity|null $entity * * @return Column * * @throws WorkflowException */ public function build(Row $row, Entity $entity = null) { if (null === $this->options) { throw WorkflowException::notConfiguredColumn($this, 'row building'); } $cell = isset($this->handlers[$row->getType()]) ? $this->handlers[$row->getType()]->handle($this, $entity, $this->options) : new Cell(); $row->add($this->name, $cell); return $this; }