1234567891011121314151617181920212223242526272829303132 |
- <?php
- /**
- * Created by PhpStorm.
- * User: robin
- * Date: 10/9/15
- * Time: 2:35 PM
- */
-
- namespace Luticate\Auth\DBO;
-
-
- class LuticateUsersLightDbo extends LuticateUsersDbo
- {
- /**
- * @param $user LuticateUsersDbo
- * @return LuticateUsersLoginDbo|null
- */
- public static function fromUserDbo($user)
- {
- return $user->castAs('Luticate\Auth\DBO\LuticateUsersLightDbo');
- }
-
- public function jsonSerialize()
- {
- $array = parent::jsonSerialize();
- unset($array["Password"]);
- unset($array["Token"]);
- unset($array["Salt"]);
- return $array;
- }
-
- }
|