for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This phpFile is auto-generated.
*/
declare(strict_types=1);
namespace AurimasNiekis\TdLibSchema;
* Adds the specified data to data usage statistics. Can be called before authorization.
class AddNetworkStatistics extends TdFunction
{
public const TYPE_NAME = 'addNetworkStatistics';
* The network statistics entry with the data to be added to statistics.
*
* @var NetworkStatisticsEntry
protected NetworkStatisticsEntry $entry;
public function __construct(NetworkStatisticsEntry $entry)
$this->entry = $entry;
}
public static function fromArray(array $array): AddNetworkStatistics
return new static(
TdSchemaRegistry::fromArray($array['entry']),
);
public function typeSerialize(): array
return [
'@type' => static::TYPE_NAME,
'entry' => $this->entry->typeSerialize(),
];
public function getEntry(): NetworkStatisticsEntry
return $this->entry;