/** * Create a new GapImg object. * * @param string $identifier The identifier of the response associated to the GapImg object. * @param integer $matchMax The maximum number of choice association. * @param Object $object An image as an Object object. * @param string $id The id of the bodyElement. * @param string $class The class of the bodyElement. * @param string $lang The language of the bodyElement. * @param string $label The label of the bodyElement. * * @throws InvalidArgumentException If one of the argument is invalid. */ public function __construct($identifier, $matchMax, Object $object, $id = '', $class = '', $lang = '', $label = '') { parent::__construct($identifier, $matchMax, $id, $class, $lang, $label); $this->setObject($object); $this->setObjectLabel(''); }
/** * Create a new GapText object. * * @param string $identifier The identifier of the GapText. * @param integer $matchMax The matchMax attribute. * @param string $id The id of the bodyElement. * @param string $class The class of the bodyElement. * @param string $lang The language of the bodyElement. * @param string $label The label of the bodyElement. * @throws \InvalidArgumentException */ public function __construct($identifier, $matchMax, $id = '', $class = '', $lang = '', $label = '') { parent::__construct($identifier, $matchMax, $id, $class, $lang, $label); $this->setContent(new TextOrVariableCollection()); }