/**
  * Create a new instance of CompactAssessmentItem
  *
  * @param string $identifier A QTI Identifier.
  * @param string $href The URL to locate the referenced assessmentItem.
  * @param \qtism\common\collections\IdentifierCollection $categories Optional categories.
  * @throws \InvalidArgumentException if $identifier is not a valid QTI Identifier or $href is not a valid URI.
  */
 public function __construct($identifier, $href, IdentifierCollection $categories = null)
 {
     parent::__construct($identifier, $href, $categories);
     $this->setOutcomeDeclarations(new OutcomeDeclarationCollection());
     $this->setResponseDeclarations(new ResponseDeclarationCollection());
     $this->setTemplateDeclarations(new TemplateDeclarationCollection());
     $this->setModalFeedbackRules(new ModalFeedbackRuleCollection());
     $this->setEndAttemptIdentifiers(new IdentifierCollection());
     $this->setShufflings(new ShufflingCollection());
 }
 /**
  * Create a new instance of CompactAssessmentItem
  * 
  * @param string $identifier A QTI Identifier.
  * @param string $href The URL to locate the referenced assessmentItem.
  * @param IdentifierCollection $categories Optional categories.
  * @throws InvalidArgumentException if $identifier is not a valid QTI Identifier or $href is not a valid URI.
  */
 public function __construct($identifier, $href, IdentifierCollection $categories = null)
 {
     parent::__construct($identifier, $href, $categories);
     $this->setOutcomeDeclarations(new OutcomeDeclarationCollection());
     $this->setResponseDeclarations(new ResponseDeclarationCollection());
 }