phpbotgram

InputPollOptionMediaInterface

Marker interface for the {@see InputPollOptionMedia} union.

Implemented by every member of the InputPollOptionMedia union — directly (the canonical abstract parent class declares implements InputPollOptionMediaInterface) or via the additional-union-membership channel for multi-parent members (e.g. an InputMediaPhoto belongs to three unions but PHP can only extends one; the other two memberships are declared with implements <X>Interface). Use this type when typing a property or parameter that must admit every member of the union, including those whose PHP extends chain points elsewhere.

Table of Contents

On this page
  • Table Of Contents

Search results