Skip to content

Instantly share code, notes, and snippets.

@NAKKA-K
Created June 7, 2019 01:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NAKKA-K/64f98c4e7c819d1a2830891db6f6f8cc to your computer and use it in GitHub Desktop.
Save NAKKA-K/64f98c4e7c819d1a2830891db6f6f8cc to your computer and use it in GitHub Desktop.
<?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