YoastSEO_Vendor\GuzzleHttp\Psr7
AppendStream::getSize() public Yoast 1.0
Tries to calculate the size by adding the size of each stream.
If any of the streams do not return a valid number, then the size of the append stream cannot be determined and null is returned.
{@inheritdoc}
{} Это метод класса: AppendStream{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$AppendStream = new AppendStream(); $AppendStream->getSize();
Код AppendStream::getSize() AppendStream::getSize Yoast 15.6.2
public function getSize()
{
$size = 0;
foreach ($this->streams as $stream) {
$s = $stream->getSize();
if ($s === null) {
return null;
}
$size += $s;
}
return $size;
}