User) { $this->User = $record->User->Login; } $this->Key = $record->AuthKey; $this->IPAddress = $record->IPAddress; } public static function __compare(UserKeyDTO $dto1, UserKeyDTO $dto2) { return strcmp($dto1->Key, $dto2->Key); } } ?>