PAGI\Client\Result\PlayResult::__construct PHP Method

__construct() public method

Constructor.
public __construct ( PAGI\Client\Result\IReadResult $result )
$result PAGI\Client\Result\IReadResult Result to decorate.
    public function __construct(IReadResult $result)
    {
        parent::__construct($result);
        if ($result->hasData()) {
            // check offset
            $data = explode('=', $result->getData());
            if (isset($data[1])) {
                if ($data[1] == 0) {
                    throw new SoundFileException('Invalid format?');
                }
            }
        }
    }
PlayResult