Skip to content

Commit

Permalink
Missing phpdoc @throws annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
belgattitude committed Mar 19, 2019
1 parent 5c9d072 commit 50d23c5
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## 2.0.2 (2019-03-19)

### Improved

- Stream collections now properly document 'NoStreamException'.
- Improved documentation for VideoInfoReader.

## 2.0.1 (2019-03-15)

### Improved
Expand Down
3 changes: 3 additions & 0 deletions src/Video/Info/AudioStreamCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public function __construct(array $audioStreamsMetadata)
$this->loadStreams();
}

/**
* @throws NoStreamException
*/
public function getFirst(): AudioStreamInterface
{
if ($this->count() === 0) {
Expand Down
5 changes: 5 additions & 0 deletions src/Video/Info/AudioStreamCollectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@

namespace Soluble\MediaTools\Video\Info;

use Soluble\MediaTools\Video\Exception\NoStreamException;

interface AudioStreamCollectionInterface extends StreamCollectionInterface
{
/**
* @throws NoStreamException
*/
public function getFirst(): AudioStreamInterface;
}
3 changes: 3 additions & 0 deletions src/Video/Info/SubtitleStreamCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public function __construct(array $subtitleStreamsMetadata)
$this->loadStreams();
}

/**
* @throws NoStreamException
*/
public function getFirst(): SubtitleStreamInterface
{
if ($this->count() === 0) {
Expand Down
5 changes: 5 additions & 0 deletions src/Video/Info/SubtitleStreamCollectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@

namespace Soluble\MediaTools\Video\Info;

use Soluble\MediaTools\Video\Exception\NoStreamException;

interface SubtitleStreamCollectionInterface extends StreamCollectionInterface
{
/**
* @throws NoStreamException
*/
public function getFirst(): SubtitleStreamInterface;
}
3 changes: 3 additions & 0 deletions src/Video/Info/VideoStreamCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public function __construct(array $videoStreamsMetadata, ?LoggerInterface $logge
$this->loadStreams();
}

/**
* @throws NoStreamException
*/
public function getFirst(): VideoStreamInterface
{
if ($this->count() === 0) {
Expand Down
5 changes: 5 additions & 0 deletions src/Video/Info/VideoStreamCollectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@

namespace Soluble\MediaTools\Video\Info;

use Soluble\MediaTools\Video\Exception\NoStreamException;

interface VideoStreamCollectionInterface extends StreamCollectionInterface
{
/**
* @throws NoStreamException
*/
public function getFirst(): VideoStreamInterface;
}

0 comments on commit 50d23c5

Please sign in to comment.