public function getContextClass()
 {
     return Paragraph::getClassName();
 }
 /**
  * Adds new child elements to the front of this InstantArticle
  *
  * @param Element to be added to this Article.
  *
  * @return $this
  */
 public function unshiftChild($child)
 {
     Type::enforce($child, [Ad::getClassName(), Analytics::getClassName(), AnimatedGIF::getClassName(), Audio::getClassName(), Blockquote::getClassName(), Image::getClassName(), H1::getClassName(), H2::getClassName(), Interactive::getClassName(), ListElement::getClassName(), Map::getClassName(), Paragraph::getClassName(), Pullquote::getClassName(), RelatedArticles::getClassName(), Slideshow::getClassName(), SocialEmbed::getClassName(), Video::getClassName()]);
     array_unshift($this->children, $child);
     return $this;
 }
 public function getContextClass()
 {
     return [InstantArticle::getClassName(), Paragraph::getClassName()];
 }
 /**
  * Adds a new Paragraph to the credits
  *
  * @param Paragraph $credit - One Paragraph to be added as a credit.
  *
  * @return $this
  */
 public function addCredit($credit)
 {
     Type::enforce($credit, Paragraph::getClassName());
     $this->credits[] = $credit;
     return $this;
 }