vendor/shopware/core/Content/Cms/DataResolver/FieldConfig.php line 7

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Cms\DataResolver;
  3. use Shopware\Core\Framework\Struct\Struct;
  4. class FieldConfig extends Struct
  5. {
  6.     public const SOURCE_STATIC 'static';
  7.     public const SOURCE_MAPPED 'mapped';
  8.     /**
  9.      * @var string
  10.      */
  11.     protected $name;
  12.     /**
  13.      * @var string
  14.      */
  15.     protected $source;
  16.     protected $value;
  17.     public function __construct(string $namestring $source$value)
  18.     {
  19.         $this->name $name;
  20.         $this->source $source;
  21.         $this->value $value;
  22.     }
  23.     public function getName(): string
  24.     {
  25.         return $this->name;
  26.     }
  27.     public function getSource(): string
  28.     {
  29.         return $this->source;
  30.     }
  31.     public function getValue()
  32.     {
  33.         return $this->value;
  34.     }
  35.     public function isStatic(): bool
  36.     {
  37.         return $this->source === self::SOURCE_STATIC;
  38.     }
  39.     public function isMapped(): bool
  40.     {
  41.         return $this->source === self::SOURCE_MAPPED;
  42.     }
  43.     public function getApiAlias(): string
  44.     {
  45.         return 'cms_data_resolver_field_config';
  46.     }
  47. }