예제 #1
0
파일: Argument.php 프로젝트: phn-io/dal
 /**
  * {@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);
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function toPg(MapperInterface $mapper, $provided, $argument = null)
 {
     return $mapper->toPg($provided === true ? $argument : $this->default, $this->type);
 }