function CreativeWork() { parent::__construct(); $this->about->tag->tagtype = 'span'; $this->author->tag->tagtype = 'span'; $this->setaboutAttributes('about'); $this->setauthorAttributes('author'); }
public function __construct() { parent::__construct(); $keys = ['author', 'publisher']; foreach ($keys as $key) { $this->properties[$key] = null; } }
/** * Organization constructor. Merges extendedStructure up * * @param array $attributes * @param array $extendedStructure */ public function __construct(array $attributes, array $extendedStructure = []) { parent::__construct($attributes, array_merge($this->structure, $this->extendedStructure, $extendedStructure)); }