Esempio n. 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;
     }
 }
Esempio n. 2
0
 public function setUp()
 {
     $this->all = Channel::all();
     $this->channel = Channel::find(1);
 }