12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace Elgg;
- /**
- * Functions for use as plugin hook/event handlers or other situations where you need a
- * globally accessible callable.
- */
- class Values {
- /**
- * Return true
- *
- * @return true
- * @since 1.12.0
- */
- public static function getTrue() {
- return true;
- }
- /**
- * Return false
- *
- * @return false
- * @since 1.12.0
- */
- public static function getFalse() {
- return false;
- }
- /**
- * Return null
- *
- * @return null
- * @since 1.12.0
- */
- public static function getNull() {
- }
- /**
- * Return empty array
- *
- * @return array
- * @since 1.12.0
- */
- public static function getArray() {
- return [];
- }
- }
|