Skip to content

Commit

Permalink
Add doc block keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed May 4, 2024
1 parent 6b11023 commit 45ad0bc
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/MimeSniffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Intervention\MimeSniffer\Interfaces\TypeInterface;
use InvalidArgumentException;
use RuntimeException;

class MimeSniffer
{
Expand All @@ -21,6 +20,7 @@ class MimeSniffer
* Create new instance
*
* @param mixed $content
* @throws InvalidArgumentException
* @return void
*/
public function __construct(mixed $content = null)
Expand All @@ -42,6 +42,7 @@ public function __construct(mixed $content = null)
* Universal factory method
*
* @param mixed $content
* @throws InvalidArgumentException
* @return MimeSniffer
*/
public static function create(mixed $content): self
Expand All @@ -53,7 +54,7 @@ public static function create(mixed $content): self
* Create new instance from given string
*
* @param string $content
*
* @throws InvalidArgumentException
* @return MimeSniffer
*/
public static function createFromString(string $content): self
Expand All @@ -65,7 +66,7 @@ public static function createFromString(string $content): self
* Load contents of given string into instance
*
* @param string $content
*
* @throws InvalidArgumentException
* @return MimeSniffer
*/
public function setFromString(string $content): self
Expand All @@ -79,7 +80,7 @@ public function setFromString(string $content): self
* Create a new instance and load contents of given filename
*
* @param string $filename
*
* @throws InvalidArgumentException
* @return MimeSniffer
*/
public static function createFromFilename(string $filename): self
Expand All @@ -91,7 +92,7 @@ public static function createFromFilename(string $filename): self
* Load contents of given filename in current instance
*
* @param string $filename
*
* @throws InvalidArgumentException
* @return MimeSniffer
*/
public function setFromFilename(string $filename): self
Expand All @@ -107,7 +108,7 @@ public function setFromFilename(string $filename): self
* Create a new instance and load contents of given filename
*
* @param resource $pointer
*
* @throws InvalidArgumentException
* @return MimeSniffer
*/
public static function createFromPointer($pointer): self
Expand All @@ -118,8 +119,8 @@ public static function createFromPointer($pointer): self
/**
* Load contents of given filename in current instance
*
* @throws InvalidArgumentException
* @param resource $pointer
*
* @return MimeSniffer
*/
public function setFromPointer($pointer): self
Expand Down

0 comments on commit 45ad0bc

Please sign in to comment.