コード例 #1
0
ファイル: ThrowableToText.php プロジェクト: fixin/fixin
 /**
  * {@inheritDoc}
  * @see \Fixin\Delivery\Cargo\CargoHandlerInterface::handle($cargo)
  */
 public function handle(CargoInterface $cargo) : CargoInterface
 {
     if ($cargo->getContent() instanceof \Throwable) {
         $cargo->setContent(Ground::debugText(htmlspecialchars($cargo->getContent())))->setContentType(static::CONTENT_TYPE);
     }
     return $cargo;
 }
コード例 #2
0
ファイル: Query.php プロジェクト: fixin/fixin
 public function __toString() : string
 {
     return Ground::debugText($this->text) . Ground::debugText(VariableInspector::arrayInfo($this->parameters));
 }
コード例 #3
0
ファイル: PdoStorageResult.php プロジェクト: fixin/fixin
 public function __toString() : string
 {
     return Ground::debugText(sprintf(static::MASK_TO_STRING, get_class($this), $this->position, $this->count()));
 }