/** * {@inheritdoc} */ public function toPg(MapperInterface $mapper, $provided, $argument = null) { if ($provided === false) { throw new LogicException('A value is required for this argument.'); } return $mapper->toPg($argument, $this->type); }
/** * {@inheritdoc} */ public function toPg(MapperInterface $mapper, $provided, $argument = null) { return $mapper->toPg($provided === true ? $argument : $this->default, $this->type); }