public function __construct($SEOIndex) { if (!in_array($SEOIndex, self::getPossibleValues())) { throw new \InvalidArgumentException('Invalid value'); } $this->SEOIndex = $SEOIndex; }