Blackfire\Player\ValueBag::all PHP Method

all() public method

public all ( $trim = false )
    public function all($trim = false)
    {
        if (!$trim) {
            return $this->values;
        }
        $values = [];
        foreach ($this->values as $key => $value) {
            $values[$key] = is_string($value) ? trim($value) : $value;
        }
        return $values;
    }

Usage Example

示例#1
0
 public function __construct(ValueBag $values, ValueBag $extra, \Exception $error = null)
 {
     $this->values = $values->all();
     $this->valueBag = $values;
     $this->extra = $extra;
     $this->error = $error;
 }
All Usage Examples Of Blackfire\Player\ValueBag::all