Skip to content

Commit

Permalink
add exception to docblock (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsupplee authored and jdpedrie committed Jun 1, 2016
1 parent 7b70a84 commit 333523a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Storage/Acl.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
namespace Google\Cloud\Storage;

use Google\Cloud\Storage\Connection\ConnectionInterface;
use InvalidArgumentException;

/**
* Google Cloud Storage uses access control lists (ACLs) to manage bucket and
Expand Down Expand Up @@ -48,6 +49,7 @@ class Acl
* @param string $type The type of access control this instance applies to.
* @param array $identity Represents which bucket, file, or generation this
* instance applies to.
* @throws InvalidArgumentException Thrown when an invalid type is passed in.
*/
public function __construct(ConnectionInterface $connection, $type, array $identity)
{
Expand All @@ -58,7 +60,7 @@ public function __construct(ConnectionInterface $connection, $type, array $ident
];

if (!in_array($type, $validTypes)) {
throw new \InvalidArgumentException('type must be one of the following: ' . implode(', ', $validTypes));
throw new InvalidArgumentException('type must be one of the following: ' . implode(', ', $validTypes));
}

$this->connection = $connection;
Expand Down

0 comments on commit 333523a

Please sign in to comment.