_id; } public function getSource() { return 'skins'; } /** * @param string $nickname * @return bool|Skins */ public static function findByNickname($nickname) { return static::findFirst([ [ 'nickname' => mb_convert_case($nickname, MB_CASE_LOWER, ENCODING), ], ]); } }