| | |
| | | |
| | | public static function has(string $property):bool |
| | | { |
| | | return property_exists(self::class, $property) && self::${$property} === true; |
| | | $inst = self::getInstance(); |
| | | return property_exists($inst, $property) && $inst::${$property} === true; |
| | | } |
| | | |
| | | public static function hasAny(array $properties):bool |
| | |
| | | public static function hasIntegration(string $integration):bool |
| | | { |
| | | $integration = strtolower($integration); |
| | | return array_key_exists($integration, self::$integrations); |
| | | return array_key_exists($integration, self::$integrations) && self::$integrations[$integration] === true; |
| | | } |
| | | |
| | | public static function hasAnyIntegration(array $integrations = []):bool |