public function setIdentifier($value)
    {
        if ($value !== null && ($value < 0 || $value > 0xFFFF)) {
            throw new \InvalidArgumentException(
                sprintf(
                    'Expected an identifier between 0x0000 and 0xFFFF but got %x',
                    $value
                )
            );
        }

        $this->identifier = $value;
    }
public function setIdentifier($value)
    {
        if ($value !== null && ($value < 0 || $value > 0xFFFF)) {
            throw new \InvalidArgumentException(
                sprintf(
                    'Expected an identifier between 0x0000 and 0xFFFF but got %x',
                    $value
                )
            );
        }

        $this->identifier = $value;
    }
public function setIdentifier ( $ value ) { if ( $ value !== null && ( $ value < 0 || $ value > 0xFFFF ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Expected an identifier between 0x0000 and 0xFFFF but got %x' , $ value ) ) ; } $ this -> identifier = $ value ; }
Sets the identifier.

@param int|null $value

@throws \InvalidArgumentException
Sets the identifier .