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;
* A block quote.
class PageBlockBlockQuote extends PageBlock
{
public const TYPE_NAME = 'pageBlockBlockQuote';
* Quote text.
*
* @var RichText
protected RichText $text;
* Quote credit.
protected RichText $credit;
public function __construct(RichText $text, RichText $credit)
parent::__construct();
$this->text = $text;
$this->credit = $credit;
}
public static function fromArray(array $array): PageBlockBlockQuote
return new static(
TdSchemaRegistry::fromArray($array['text']),
TdSchemaRegistry::fromArray($array['credit']),
);
public function typeSerialize(): array
return [
'@type' => static::TYPE_NAME,
'text' => $this->text->typeSerialize(),
'credit' => $this->credit->typeSerialize(),
];
public function getText(): RichText
return $this->text;
public function getCredit(): RichText
return $this->credit;