<commit_before><?php
/*
 * Spring Signage Ltd - http://www.springsignage.com
 * Copyright (C) 2016 Spring Signage Ltd
 * (XiboNotification.php)
 */


namespace Xibo\OAuth2\Client\Entity;


use Xibo\OAuth2\Client\Exception\XiboApiException;
class XiboNotification extends XiboEntity
{
	private $url = '/notification';
	public $notificationId;
    public $createdDt;
    public $releaseDt;
    public $subject;
    public $body;
    public $isEmail;
    public $isInterrupt;
    public $isSystem;
    public $userId;
    public $displayGroupId;


    /**
     * Create
     * @param $subjectN
     * @param $bodyN
     * @param $releaseDtN
     * @param $isEmailN
     * @param $isInterruptN
     * @param $displaygroupN
     * @return XiboNotification
     */
    public function create($subjectN, $bodyN, $releaseDtN, $isEmailN, $isInterruptN, $displayGroupN)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();<commit_msg>Added Get function to notification wrapper<commit_after><?php
/*
 * Spring Signage Ltd - http://www.springsignage.com
 * Copyright (C) 2016 Spring Signage Ltd
 * (XiboNotification.php)
 */


namespace Xibo\OAuth2\Client\Entity;


use Xibo\OAuth2\Client\Exception\XiboApiException;
class XiboNotification extends XiboEntity
{
	private $url = '/notification';
	public $notificationId;
    public $createdDt;
    public $releaseDt;
    public $subject;
    public $body;
    public $isEmail;
    public $isInterrupt;
    public $isSystem;
    public $userId;
    public $displayGroupId;

    /**
     * @param array $params
     * @return array[XiboNotification]
     */
    public function get(array $params = [])
    {
        $entries = [];
        $response = $this->doGet('/notification', $params);

        foreach ($response as $item) {
            $entries[] = clone $this->hydrate($item);
        }

        return $entries;
    }

    /**
     * Create
     * @param $subjectN
     * @param $bodyN
     * @param $releaseDtN
     * @param $isEmailN
     * @param $isInterruptN
     * @param $displaygroupN
     * @return XiboNotification
     */
    public function create($subjectN, $bodyN, $releaseDtN, $isEmailN, $isInterruptN, $displayGroupN)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
{'fraction_non_alphanumeric': 0.1279120879120879, 'fraction_numerical': 0.005274725274725275, 'mean_word_length': 2.951388888888889, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2340053', 'n_tokens_mistral': 743, 'n_tokens_neox': 718, 'n_words': 162}