CodeExplorer writeBuffer example
/**
* @return void
*/
public function writeln(string|iterable
$messages, int
$type = self::OUTPUT_NORMAL
) { if (!
is_iterable($messages)) { $messages =
[$messages];
} foreach ($messages as $message) { parent::
writeln($message,
$type);
$this->
writeBuffer($message, true,
$type);
} } /**
* @return void
*/
public function write(string|iterable
$messages, bool
$newline = false, int
$type = self::OUTPUT_NORMAL
) { if (!
is_iterable($messages)) { $messages =
[$messages];
} /**
* @return void
*/
public function writeln(string|iterable
$messages, int
$type = self::OUTPUT_NORMAL
) { if (!
is_iterable($messages)) { $messages =
[$messages];
} foreach ($messages as $message) { parent::
writeln($message,
$type);
$this->
writeBuffer($message, true,
$type);
} } /**
* @return void
*/
public function write(string|iterable
$messages, bool
$newline = false, int
$type = self::OUTPUT_NORMAL
) { if (!
is_iterable($messages)) { $messages =
[$messages];
}