get( Login_Duration::class )->get_tweak_duration(); $this->login_duration = ! empty( $tweak_duration ) ? $tweak_duration : $this->login_duration; $this->user_roles = array( 'administrator' ); } /** * Has lock properties? * * @return bool */ public function has_properties(): bool { return ! empty( $this->lock_properties ); } /** * Is property locked? * * @param string $property The property to check. * * @return bool */ public function is_property_locked( $property ): bool { return in_array( $property, $this->lock_properties, true ); } /** * Return the module slug. * * @return string */ public static function get_module_slug(): string { return 'session-protection'; } }