[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Files/Enums/ -> MediaOrientationEnum.php (source)

   1  <?php
   2  
   3  declare (strict_types=1);
   4  namespace WordPress\AiClient\Files\Enums;
   5  
   6  use WordPress\AiClient\Common\AbstractEnum;
   7  /**
   8   * Represents the type of file storage.
   9   *
  10   * @method static self square() Returns the square orientation
  11   * @method static self landscape() Returns the landscape orientation.
  12   * @method static self portrait() Returns the portrait orientation.
  13   * @method bool isSquare() Checks if this is an square orientation
  14   * @method bool isLandscape() Checks if this is a landscape orientation.
  15   * @method bool isPortrait() Checks if this is a portrait orientation.
  16   *
  17   * @since 0.1.0
  18   */
  19  class MediaOrientationEnum extends AbstractEnum
  20  {
  21      /**
  22       * Square orientation.
  23       *
  24       * @var string
  25       */
  26      public const SQUARE = 'square';
  27      /**
  28       * Landscape orientation.
  29       *
  30       * @var string
  31       */
  32      public const LANDSCAPE = 'landscape';
  33      /**
  34       * Portrait orientation.
  35       *
  36       * @var string
  37       */
  38      public const PORTRAIT = 'portrait';
  39  }


Generated : Sat Jun 13 09:38:55 2026 Cross-referenced by PHPXref