ManaPHP\Authentication\Token\Adapter\Mwt::__construct PHP Method

__construct() public method

Mwt constructor.
public __construct ( array $options = [] )
$options array
    public function __construct($options = [])
    {
        foreach (get_object_vars($this) as $field => $_) {
            if (!Text::startsWith($field, '_')) {
                $this->_fields[] = $field;
            }
        }
        if (isset($options['type'])) {
            $this->_type = $options['type'];
        }
        if (isset($options['keys'])) {
            $this->_keys = $options['keys'];
        } else {
            $this->_keys = [$this->configure->getSecretKey('mwt:' . $this->_type)];
        }
        if (isset($options['ttl'])) {
            $this->_ttl = $options['ttl'];
        }
    }