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