"Fossies" - the Fresh Open Source Software Archive

Member "framework-8.65.0/src/Illuminate/View/AppendableAttributeValue.php" (19 Oct 2021, 520 Bytes) of package /linux/www/laravel-framework-8.65.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "AppendableAttributeValue.php" see the Fossies "Dox" file reference documentation.

    1 <?php
    2 
    3 namespace Illuminate\View;
    4 
    5 class AppendableAttributeValue
    6 {
    7     /**
    8      * The attribute value.
    9      *
   10      * @var mixed
   11      */
   12     public $value;
   13 
   14     /**
   15      * Create a new appendable attribute value.
   16      *
   17      * @param  mixed  $value
   18      * @return void
   19      */
   20     public function __construct($value)
   21     {
   22         $this->value = $value;
   23     }
   24 
   25     /**
   26      * Get the string value.
   27      *
   28      * @return string
   29      */
   30     public function __toString()
   31     {
   32         return (string) $this->value;
   33     }
   34 }