Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@..
Decoded Output download
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Notifier\Bridge\Slack\Block;
/**
* @author Fabien Potencier <[email protected]>
*/
final class SlackActionsBlock extends AbstractSlackBlock
{
public function __construct()
{
$this->options['type'] = 'actions';
}
/**
* @return $this
*/
public function button(string $text, string $url, ?string $style = null): static
{
if (25 === \count($this->options['elements'] ?? [])) {
throw new \LogicException('Maximum number of buttons should not exceed 25.');
}
$element = new SlackButtonBlockElement($text, $url, $style);
$this->options['elements'][] = $element->toArray();
return $this;
}
}
?>
Did this file decode correctly?
Original Code
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Notifier\Bridge\Slack\Block;
/**
* @author Fabien Potencier <[email protected]>
*/
final class SlackActionsBlock extends AbstractSlackBlock
{
public function __construct()
{
$this->options['type'] = 'actions';
}
/**
* @return $this
*/
public function button(string $text, string $url, ?string $style = null): static
{
if (25 === \count($this->options['elements'] ?? [])) {
throw new \LogicException('Maximum number of buttons should not exceed 25.');
}
$element = new SlackButtonBlockElement($text, $url, $style);
$this->options['elements'][] = $element->toArray();
return $this;
}
}
Function Calls
None |
Stats
MD5 | 835066831b62f7318000f6c325a5ebe8 |
Eval Count | 0 |
Decode Time | 91 ms |