php-pulseaudio/src/Sink/SinkInput.php

48 lines
739 B
PHP

<?php
namespace NoccyLabs\PulseAudio\Sink;
use NoccyLabs\PulseAudio\PropertyList;
class SinkInput
{
protected $index;
protected $sink;
protected $client;
protected $properties;
public function __construct($index, array $input=[])
{
$this->index = $index;
$this->sink = $input['sink'];
$this->client = $input['client'];
$this->properties = new PropertyList($input['properties'], true);
}
public function getIndex()
{
return $this->index;
}
public function getSink()
{
return $this->sink;
}
public function getClient()
{
return $this->client;
}
public function moveToSink(Sink $sink)
{
}
}