-
-
Save NAKKA-K/64f98c4e7c819d1a2830891db6f6f8cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Illuminate\Auth\Access; | |
class Response | |
{ | |
/** | |
* The response message. | |
* | |
* @var string|null | |
*/ | |
protected $message; | |
/** | |
* Create a new response. | |
* | |
* @param string|null $message | |
*/ | |
public function __construct($message = null) | |
{ | |
$this->message = $message; | |
} | |
/** | |
* Get the response message. | |
* | |
* @return string|null | |
*/ | |
public function message() | |
{ | |
return $this->message; | |
} | |
/** | |
* Get the string representation of the message. | |
* | |
* @return string | |
*/ | |
public function __toString() | |
{ | |
return $this->message(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment