for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace VideoPublisher\Domain;
/**
* Class Stream.
*
* @author Bart Malestein <[email protected]>
*/
class Stream
{
* @var string
private $name;
private $uuid;
private $status;
* @var boolean
private $enabled;
private $viewable;
* @var StreamView
private $view;
* Stream constructor.
* @param $data
public function __construct($data)
$this->name = $data['streamName'];
$this->uuid = $data['uuid'];
$this->status = $data['status'];
$this->enabled = (boolean)$data['enabled'];
$this->viewable = (boolean)$data['viewable'];
$this->view = new StreamView($data['view']);
}
* @return string
public function getName()
return $this->name;
public function getUuid()
return $this->uuid;
public function getStatus()
return $this->status;
* @return boolean
public function isEnabled()
return $this->enabled;
public function isViewable()
return $this->viewable;
* @return StreamView
public function getView()
return $this->view;