Example #1
0
 /**
  * Constructor
  *
  * @param \rsanchez\Deep\Model\Channel $model
  */
 public function __construct(Channel $model)
 {
     $this->model = $model;
     $this->collection = $this->model->all();
     foreach ($this->collection as $channel) {
         $this->channelsById[$channel->channel_id] = $channel;
         $this->channelsByName[$channel->channel_name] = $channel;
     }
 }
Example #2
0
 public function setUp()
 {
     $this->all = Channel::all();
     $this->channel = Channel::find(1);
 }