Add more precise @throws
This commit is contained in:
parent
73e80536ae
commit
0b47cc8ab0
1 changed files with 22 additions and 9 deletions
|
@ -99,7 +99,9 @@ class Video
|
||||||
* @param string $prop Property
|
* @param string $prop Property
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
* @throws AlltubeLibraryException
|
* @throws Exception\PasswordException
|
||||||
|
* @throws Exception\WrongPasswordException
|
||||||
|
* @throws Exception\YoutubedlException
|
||||||
*/
|
*/
|
||||||
public function getProp($prop = 'dump-json')
|
public function getProp($prop = 'dump-json')
|
||||||
{
|
{
|
||||||
|
@ -124,8 +126,9 @@ class Video
|
||||||
* Get all information about a video.
|
* Get all information about a video.
|
||||||
*
|
*
|
||||||
* @return stdClass Decoded JSON
|
* @return stdClass Decoded JSON
|
||||||
*
|
* @throws Exception\PasswordException
|
||||||
* @throws AlltubeLibraryException
|
* @throws Exception\WrongPasswordException
|
||||||
|
* @throws Exception\YoutubedlException
|
||||||
*/
|
*/
|
||||||
public function getJson()
|
public function getJson()
|
||||||
{
|
{
|
||||||
|
@ -142,7 +145,9 @@ class Video
|
||||||
* @param string $name Property
|
* @param string $name Property
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
* @throws AlltubeLibraryException
|
* @throws Exception\PasswordException
|
||||||
|
* @throws Exception\WrongPasswordException
|
||||||
|
* @throws Exception\YoutubedlException
|
||||||
*/
|
*/
|
||||||
public function __get($name)
|
public function __get($name)
|
||||||
{
|
{
|
||||||
|
@ -159,7 +164,9 @@ class Video
|
||||||
* @param string $name Property
|
* @param string $name Property
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
* @throws AlltubeLibraryException
|
* @throws Exception\PasswordException
|
||||||
|
* @throws Exception\WrongPasswordException
|
||||||
|
* @throws Exception\YoutubedlException
|
||||||
*/
|
*/
|
||||||
public function __isset($name)
|
public function __isset($name)
|
||||||
{
|
{
|
||||||
|
@ -174,7 +181,10 @@ class Video
|
||||||
* (eg. bestvideo+bestaudio).
|
* (eg. bestvideo+bestaudio).
|
||||||
*
|
*
|
||||||
* @return string[] URLs of video
|
* @return string[] URLs of video
|
||||||
* @throws AlltubeLibraryException
|
* @throws EmptyUrlException
|
||||||
|
* @throws Exception\PasswordException
|
||||||
|
* @throws Exception\WrongPasswordException
|
||||||
|
* @throws Exception\YoutubedlException
|
||||||
*/
|
*/
|
||||||
public function getUrl()
|
public function getUrl()
|
||||||
{
|
{
|
||||||
|
@ -194,8 +204,9 @@ class Video
|
||||||
* Get filename of video file from URL of page.
|
* Get filename of video file from URL of page.
|
||||||
*
|
*
|
||||||
* @return string Filename of extracted video
|
* @return string Filename of extracted video
|
||||||
*
|
* @throws Exception\PasswordException
|
||||||
* @throws AlltubeLibraryException
|
* @throws Exception\WrongPasswordException
|
||||||
|
* @throws Exception\YoutubedlException
|
||||||
*/
|
*/
|
||||||
public function getFilename()
|
public function getFilename()
|
||||||
{
|
{
|
||||||
|
@ -208,7 +219,9 @@ class Video
|
||||||
* @param string $extension New file extension
|
* @param string $extension New file extension
|
||||||
*
|
*
|
||||||
* @return string Filename of extracted video with specified extension
|
* @return string Filename of extracted video with specified extension
|
||||||
* @throws AlltubeLibraryException
|
* @throws Exception\PasswordException
|
||||||
|
* @throws Exception\WrongPasswordException
|
||||||
|
* @throws Exception\YoutubedlException
|
||||||
*/
|
*/
|
||||||
public function getFileNameWithExtension($extension)
|
public function getFileNameWithExtension($extension)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue