Пример #1
0
 /**
  * @param CommentModel   $Model
  *
  * @param CommentAdapter $Adapter
  */
 public function __construct(CommentModel $Model, CommentAdapter $Adapter)
 {
     parent::__construct($Model, $Adapter);
 }
Пример #2
0
 /**
  * @param PostModel   $Model
  *
  * @param PostAdapter $Adapter
  */
 public function __construct(PostModel $Model, PostAdapter $Adapter)
 {
     parent::__construct($Model, $Adapter);
 }
Пример #3
0
 /**
  * @param UserModel   $Model
  *
  * @param UserAdapter $Adapter
  */
 public function __construct(UserModel $Model, UserAdapter $Adapter)
 {
     parent::__construct($Model, $Adapter);
 }
Пример #4
0
 /**
  * @author Rohit Arora
  *
  * @param array $columns
  *
  * @return Collection
  */
 public function fetch($columns = [ALL_FIELDS])
 {
     return $this->Cache->remember('posts-' . implode('-', $columns), 60, function () use($columns) {
         return $this->PostContract->fetch($columns);
     });
 }