public static function create(string $cstName, $cstValue)
    {
        if (defined($cstName)) {
            throw new Exception(
                'The constant '.$cstName.' is already defined.',
                self::ERR_ALREADY_DEFINED
            );
        }
        
        define($cstName, $cstValue);
    }
public static function create(string $cstName, $cstValue)
    {
        if (defined($cstName)) {
            throw new Exception(
                'The constant '.$cstName.' is already defined.',
                self::ERR_ALREADY_DEFINED
            );
        }
        
        define($cstName, $cstValue);
    }
public static function create ( string $ cstName , $ cstValue ) { if ( defined ( $ cstName ) ) { throw new Exception ( 'The constant ' . $ cstName . ' is already defined.' , self :: ERR_ALREADY_DEFINED ) ; } define ( $ cstName , $ cstValue ) ; }
Create a new constant if not exist

@param string $cstName The constant's name
@param mixed $cstValue The constant's value

@return void

@throws \Exception If the constant is already defined
Create a new constant if not exist