public function serialize() { return ['locked' => $this->isLocked() ? 'true' : 'false', 'username' => $this->get('username'), 'password' => $this->get('password')]; }