Emarref\Jwt\HeaderParameter\Critical::setValue PHP Method

setValue() public method

public setValue ( array $value )
$value array
    public function setValue($value)
    {
        if (!is_array($value)) {
            $value = [$value];
        }
        parent::setValue($value);
    }

Usage Example

Example #1
0
 public function testSetValue()
 {
     $newValue = 'NewValue';
     $this->parameter->setValue($newValue);
     $this->assertSame([$newValue], $this->parameter->getValue());
 }