Action.php
TLDR
This file defines the Action
class in the Illuminate\Notifications
namespace. It contains a constructor method to create a new instance of the Action
class with a text and a URL.
Classes
Action
The Action
class represents an action in a notification. It has the following properties:
-
text
: The action text. -
url
: The action URL.
It contains a constructor method that accepts the text
and url
parameters and initializes the corresponding properties.
<?php
namespace Illuminate\Notifications;
class Action
{
/**
* The action text.
*
* @var string
*/
public $text;
/**
* The action URL.
*
* @var string
*/
public $url;
/**
* Create a new action instance.
*
* @param string $text
* @param string $url
* @return void
*/
public function __construct($text, $url)
{
$this->url = $url;
$this->text = $text;
}
}