for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace IlluminateAgnostic\Str\Support;
use IlluminateAgnostic\Str\Contracts\Support\Htmlable;
class HtmlString implements Htmlable
{
/**
* The HTML string.
*
* @var string
*/
protected $html;
* Create a new HTML string instance.
* @param string $html
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct($html)
$this->html = $html;
}
* Get the HTML string.
* @return string
public function toHtml()
return $this->html;
public function __toString()
return $this->toHtml();
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.