Skip to content

Commit

Permalink
Method to add meta information when sending template (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
palokankare authored May 7, 2019
1 parent 34b9b4d commit dbb18d5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/Resources/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Template extends ApiResource
* Template constructor.
*
* @param array $attributes
* @param null $notific
* @param null $notific
*/
public function __construct(array $attributes, $notific = null)
{
Expand Down Expand Up @@ -123,6 +123,17 @@ public function channels(...$channels)
return $this;
}

/**
* @param array $meta
* @return $this
*/
public function meta(array $meta)
{
$this->data['meta'] = json_encode($meta);

return $this;
}

/**
* @return mixed
*/
Expand Down

0 comments on commit dbb18d5

Please sign in to comment.