public function addPrice($price, $usergroup = ''): void
    {
        if ($this->price === null) {
            $this->price = new Price();
        }

        $this->price->setValue($price, $usergroup);
    }
public function addPrice($price, $usergroup = ''): void
    {
        if ($this->price === null) {
            $this->price = new Price();
        }

        $this->price->setValue($price, $usergroup);
    }
public function addPrice ( $ price , $ usergroup = '' ) : void { if ( $ this -> price === null ) { $ this -> price = new Price ( ) ; } $ this -> price -> setValue ( $ price , $ usergroup ) ; }
Shortcut to easily add the price of the item.

@param string $price The price of the item.
@param string $usergroup The usergroup of the price.
Shortcut to easily add the price of the item .