export() публичный Метод

Negative depths are treated as infinite depth.
public export ( &$value, integer | null $depth = null ) : string
$depth integer | null The depth, or null to use the default.
Результат string The exported value.
Пример #1
0
 /**
  * Describe this matcher.
  *
  * @param Exporter|null $exporter The exporter to use.
  *
  * @return string The description.
  */
 public function describe(Exporter $exporter = null)
 {
     if ($exporter) {
         return $exporter->export($this->value);
     }
     return $this->exporter->export($this->value);
 }