Lines Matching refs:input
44 * @param mixed $input The PHP value
49 public function dump($input, int $inline = 0, int $indent = 0, int $flags = 0): string
55 if (Yaml::DUMP_OBJECT_AS_MAP & $flags && ($input instanceof \ArrayObject || $input instanceof \stdClass)) {
56 $dumpObjectAsInlineMap = empty((array) $input);
59 if ($inline <= 0 || (!\is_array($input) && !$input instanceof TaggedValue && $dumpObjectAsInlineMap) || empty($input)) {
60 $output .= $prefix.Inline::dump($input, $flags);
61 } elseif ($input instanceof TaggedValue) {
62 $output .= $this->dumpTaggedValue($input, $inline, $indent, $flags, $prefix);
64 $dumpAsMap = Inline::isHash($input);
66 foreach ($input as $key => $value) {