first prod
This commit is contained in:
23
kernel/app_modules/view/interfaces/Viewable.php
Normal file
23
kernel/app_modules/view/interfaces/Viewable.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace kernel\app_modules\view\interfaces;
|
||||
|
||||
interface Viewable
|
||||
{
|
||||
|
||||
/**
|
||||
* Отношение просмотров
|
||||
*/
|
||||
public function views();
|
||||
|
||||
/**
|
||||
* Получить количество просмотров
|
||||
*/
|
||||
public function getViewsCountAttribute();
|
||||
|
||||
/**
|
||||
* Получить уникальное количество просмотров
|
||||
*/
|
||||
public function getUniqueViewsCountAttribute();
|
||||
|
||||
}
|
Reference in New Issue
Block a user