Skip to content

Instantly share code, notes, and snippets.

@JackNoordhuis
Last active March 2, 2019 14:36
Show Gist options
  • Save JackNoordhuis/a73dbf5cd32dac4ce44ad9177add3816 to your computer and use it in GitHub Desktop.
Save JackNoordhuis/a73dbf5cd32dac4ce44ad9177add3816 to your computer and use it in GitHub Desktop.
Enum IDE helper example
<?php
/** @noinspection ALL */
// @formatter:off
/**
* A helper file for php-enums, to provide autocomplete information to your IDE.
* Generated on 2019-03-02 14:35:54.
*
* This file should not be included in your code, only analyzed by your IDE!
*
* @see https://github.com/NxtLvLSoftware/php-enums
*/
namespace {
die("This file should not be included, only analyzed by your IDE!");
}
namespace nxtlvlsoftware\tests\enums {
class TypeEnums {
/**
* @return mixed
*/
public static function INT() {}
/**
* @return mixed
*/
public static function BOOL() {}
/**
* @return mixed
*/
public static function FLOAT() {}
/**
* @return mixed
*/
public static function STRING() {}
/**
* @return mixed
*/
public static function ARRAY() {}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment