phalconplus Documentation v1.1.0
Class
Class PhalconPlus Logger Processor

# Uid

        namespace PhalconPlus\Logger\Processor;

    class Uid extends AbstractProcessor
    {
        private uid;

        public function __construct(var len = 18)
        {
            if (strlen(len) > 2) {
                let this->uid = len;
            } else {
                let this->uid = substr(hash("md5", uniqid("", true)), 0, len);
            }
        }

        public function __toString()
        {
            return this->uid;
        }
    }