| 1 | <?php | ||
| 28 | class SoftDeleteQueryBehavior extends Behavior | ||
| 29 | { | ||
| 30 | /** | ||
| 31 | * @var string SoftDelete attribute | ||
| 32 | */ | ||
| 33 | public $attribute = 'deleted_at'; | ||
| 34 | |||
| 35 | /** | ||
| 36 | * @return static | ||
| 37 | */ | ||
| 38 | 3 | public function deleted() | |
| 42 | |||
| 43 | /** | ||
| 44 | * @return static | ||
| 45 | */ | ||
| 46 | 6 | public function notDeleted() | |
| 50 | |||
| 51 | /** | ||
| 52 | * @return string | ||
| 53 | */ | ||
| 54 | 9 | protected function tableName() | |
| 60 | |||
| 61 | } | ||
| 62 |