public function __construct(XMLTag $command) { $this->cmdtag = $command; $this->form = is_null($form = $command->getChildByAttribute('x', 'xmlns', 'jabber:x:data')) ? NULL : new Form($form); }