mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-01-16 18:04:34 -05:00
26 lines
515 B
PHP
26 lines
515 B
PHP
<?php
|
|
|
|
namespace Gazelle\WitnessTable;
|
|
|
|
class UserReadNews extends AbstractWitnessTable {
|
|
protected function reference(): string {
|
|
return 'news';
|
|
}
|
|
|
|
protected function tableName(): string {
|
|
return 'user_read_news';
|
|
}
|
|
|
|
protected function idColumn(): string {
|
|
return 'user_id';
|
|
}
|
|
|
|
protected function valueColumn(): string {
|
|
return 'news_id';
|
|
}
|
|
|
|
public function witness(\Gazelle\User $user): bool {
|
|
return $this->witnessValue($user);
|
|
}
|
|
}
|