Skip to content

Commit 50d23c5

Browse files
committed
Missing phpdoc @throws annotation
1 parent 5c9d072 commit 50d23c5

7 files changed

+31
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## 2.0.2 (2019-03-19)
9+
10+
### Improved
11+
12+
- Stream collections now properly document 'NoStreamException'.
13+
- Improved documentation for VideoInfoReader.
14+
815
## 2.0.1 (2019-03-15)
916

1017
### Improved

src/Video/Info/AudioStreamCollection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ public function __construct(array $audioStreamsMetadata)
2626
$this->loadStreams();
2727
}
2828

29+
/**
30+
* @throws NoStreamException
31+
*/
2932
public function getFirst(): AudioStreamInterface
3033
{
3134
if ($this->count() === 0) {

src/Video/Info/AudioStreamCollectionInterface.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44

55
namespace Soluble\MediaTools\Video\Info;
66

7+
use Soluble\MediaTools\Video\Exception\NoStreamException;
8+
79
interface AudioStreamCollectionInterface extends StreamCollectionInterface
810
{
11+
/**
12+
* @throws NoStreamException
13+
*/
914
public function getFirst(): AudioStreamInterface;
1015
}

src/Video/Info/SubtitleStreamCollection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ public function __construct(array $subtitleStreamsMetadata)
2626
$this->loadStreams();
2727
}
2828

29+
/**
30+
* @throws NoStreamException
31+
*/
2932
public function getFirst(): SubtitleStreamInterface
3033
{
3134
if ($this->count() === 0) {

src/Video/Info/SubtitleStreamCollectionInterface.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44

55
namespace Soluble\MediaTools\Video\Info;
66

7+
use Soluble\MediaTools\Video\Exception\NoStreamException;
8+
79
interface SubtitleStreamCollectionInterface extends StreamCollectionInterface
810
{
11+
/**
12+
* @throws NoStreamException
13+
*/
914
public function getFirst(): SubtitleStreamInterface;
1015
}

src/Video/Info/VideoStreamCollection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ public function __construct(array $videoStreamsMetadata, ?LoggerInterface $logge
3434
$this->loadStreams();
3535
}
3636

37+
/**
38+
* @throws NoStreamException
39+
*/
3740
public function getFirst(): VideoStreamInterface
3841
{
3942
if ($this->count() === 0) {

src/Video/Info/VideoStreamCollectionInterface.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44

55
namespace Soluble\MediaTools\Video\Info;
66

7+
use Soluble\MediaTools\Video\Exception\NoStreamException;
8+
79
interface VideoStreamCollectionInterface extends StreamCollectionInterface
810
{
11+
/**
12+
* @throws NoStreamException
13+
*/
914
public function getFirst(): VideoStreamInterface;
1015
}

0 commit comments

Comments
 (0)