Nelmio\Alice\Definition\Value\UniqueValue::getId PHP Method

getId() public method

public getId ( ) : string
return string
    public function getId() : string
    {
        return $this->id;
    }

Usage Example

Beispiel #1
0
 public function add(UniqueValue $value)
 {
     $valueId = $value->getId();
     if (false === array_key_exists($valueId, $this->pool)) {
         $this->pool[$valueId] = [];
     }
     $this->pool[$valueId][] = $value->getValue();
 }
All Usage Examples Of Nelmio\Alice\Definition\Value\UniqueValue::getId