SPL Type Handling
- Введение
- Установка и настройка
- SplType — The SplType class
- SplType::__construct — Creates a new value of some type
- SplInt — The SplInt class
- SplFloat — The SplFloat class
- SplEnum — The SplEnum class
- SplEnum::getConstList — Returns all consts (possible values) as an array.
- SplBool — The SplBool class
- SplString — The SplString class
Коментарии
Currently SPLTypes do not support adding properties to any classes extending them.
A segmentation fault will be thrown.
This seems like a great addon! It would be helpful if there were a lot more details on the usage in the docs though. Right now it's kinda a black box
This PECL is mostly abandoned, but in case you want to use SplEnum, there's a PHP 7 rewrite available for installation at https://github.com/igorsantos07/SPL_Types