Captioning\Cue::__construct PHP Method

__construct() public method

Cue constructor.
public __construct ( mixed $_start, mixed $_stop, string $_text = '' )
$_start mixed
$_stop mixed
$_text string
    public function __construct($_start, $_stop, $_text = '')
    {
        $this->lineEnding = File::UNIX_LINE_ENDING;
        $this->setStart($_start);
        $this->setStop($_stop);
        if (trim($_text) !== '') {
            $this->setText($_text);
        } else {
            $this->text = '';
        }
    }

Usage Example

 public function __construct($_start, $_stop, $_text = null, $_layer = 0, $_style = 'Default', $_name = '', $_marginL = '0000', $_marginR = '0000', $_marginV = '0000', $_effect = '')
 {
     parent::__construct($_start, $_stop, $_text);
     $this->layer = $_layer;
     $this->style = $_style;
     $this->name = $_name;
     $this->marginL = $_marginL;
     $this->marginR = $_marginR;
     $this->marginV = $_marginV;
     $this->effect = $_effect;
 }