. * * @author Daniil Gentili * @copyright 2016-2023 Daniil Gentili * @license https://opensource.org/licenses/AGPL-3.0 AGPLv3 * @link https://docs.madelineproto.xyz MadelineProto documentation */ namespace danog\MadelineProto\TL; /** * @internal */ class SecretBuilder extends Builder { protected function buildMain(): void { $initial_constructors = array_filter( $this->constructorByPredicate, static fn (array $arr) => ( $arr['type'] === 'DecryptedMessage' || $arr['type'] === 'DecryptedMessageMedia' ) ); $this->m("deserialize_type_Object", "return {$this->buildTypes($initial_constructors, 'Object')};", 'mixed', true, static: false); } }