Skip to content

Commit 913f363

Browse files
committed
update doc blocks on make method
1 parent 5fb5cdf commit 913f363

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/Flynsarmy/DbBladeCompiler/DbView.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use View, Closure, ArrayAccess;
44
use Illuminate\Contracts\Support\Arrayable;
55
use Illuminate\Contracts\Support\Renderable;
6+
use Illuminate\Database\Eloquent\Model;
67

78
class DbView extends \Illuminate\View\View implements ArrayAccess, Renderable
89
{
@@ -27,15 +28,15 @@ public function setEngine($compiler)
2728
/**
2829
* Get a evaluated view contents for the given view.
2930
*
30-
* @param Illuminate\Database\Eloquent\Model $view
31-
* @param array $data
32-
* @param array $mergeData
33-
* @param string $content_field
31+
* @param Model $model
32+
* @param array $data
33+
* @param array $mergeData
34+
* @param string $content_field
3435
* @return DbView
3536
*/
36-
public function make($view, $data = array(), $mergeData = array(), $content_field = null)
37+
public function make(Model $model, $data = array(), $mergeData = array(), $content_field = null)
3738
{
38-
$this->path = $view;
39+
$this->path = $model;
3940
$this->data = array_merge($mergeData, $this->parseData($data));
4041
if (!is_null($content_field)) {
4142
$this->content_field = $content_field;

0 commit comments

Comments
 (0)