original_string: public function getProperties()
      {
          $properties = [];
  
          foreach ($this->audios as $audio) {
              $properties = array_merge($properties, $audio->getProperties());
          }
          
          if ($this->title !== null) {
              $properties[] = new Property(Property::TITLE, $this->title);
          }
  
          if ($this->description !== null) {
              $properties[] = new Property(Property::DESCRIPTION, $this->description);
          }
  
          if ($this->determiner !== null) {
              $properties[] = new Property(Property::DETERMINER, $this->determiner);
          }
  
          foreach ($this->images as $image) {
              $properties = array_merge($properties, $image->getProperties());
          }
  
          if ($this->locale !== null) {
              $properties[] = new Property(Property::LOCALE, $this->locale);
          }
  
          foreach ($this->localeAlternate as $locale) {
              $properties[] = new Property(Property::LOCALE_ALTERNATE, $locale);
          }
  
          if ($this->richAttachment !== null) {
              $properties[] = new Property(Property::RICH_ATTACHMENT, (int)$this->richAttachment);
          }
  
          foreach ($this->seeAlso as $seeAlso) {
              $properties[] = new Property(Property::SEE_ALSO, $seeAlso);
          }
  
          if ($this->siteName !== null) {
              $properties[] = new Property(Property::SITE_NAME, $this->siteName);
          }
  
          if ($this->type !== null) {
              $properties[] = new Property(Property::TYPE, $this->type);
          }
  
          if ($this->updatedTime !== null) {
              $properties[] = new Property(Property::UPDATED_TIME, $this->updatedTime->format("c"));
          }
  
          if ($this->url !== null) {
              $properties[] = new Property(Property::URL, $this->url);
          }
  
          foreach ($this->videos as $video) {
              $properties = array_merge($properties, $video->getProperties());
          }
  
          return $properties;
      }
code: public function getProperties()
      {
          $properties = [];
  
          foreach ($this->audios as $audio) {
              $properties = array_merge($properties, $audio->getProperties());
          }
          
          if ($this->title !== null) {
              $properties[] = new Property(Property::TITLE, $this->title);
          }
  
          if ($this->description !== null) {
              $properties[] = new Property(Property::DESCRIPTION, $this->description);
          }
  
          if ($this->determiner !== null) {
              $properties[] = new Property(Property::DETERMINER, $this->determiner);
          }
  
          foreach ($this->images as $image) {
              $properties = array_merge($properties, $image->getProperties());
          }
  
          if ($this->locale !== null) {
              $properties[] = new Property(Property::LOCALE, $this->locale);
          }
  
          foreach ($this->localeAlternate as $locale) {
              $properties[] = new Property(Property::LOCALE_ALTERNATE, $locale);
          }
  
          if ($this->richAttachment !== null) {
              $properties[] = new Property(Property::RICH_ATTACHMENT, (int)$this->richAttachment);
          }
  
          foreach ($this->seeAlso as $seeAlso) {
              $properties[] = new Property(Property::SEE_ALSO, $seeAlso);
          }
  
          if ($this->siteName !== null) {
              $properties[] = new Property(Property::SITE_NAME, $this->siteName);
          }
  
          if ($this->type !== null) {
              $properties[] = new Property(Property::TYPE, $this->type);
          }
  
          if ($this->updatedTime !== null) {
              $properties[] = new Property(Property::UPDATED_TIME, $this->updatedTime->format("c"));
          }
  
          if ($this->url !== null) {
              $properties[] = new Property(Property::URL, $this->url);
          }
  
          foreach ($this->videos as $video) {
              $properties = array_merge($properties, $video->getProperties());
          }
  
          return $properties;
      }
code_tokens: public function getProperties ( ) { $ properties = [ ] ; foreach ( $ this -> audios as $ audio ) { $ properties = array_merge ( $ properties , $ audio -> getProperties ( ) ) ; } if ( $ this -> title !== null ) { $ properties [ ] = new Property ( Property :: TITLE , $ this -> title ) ; } if ( $ this -> description !== null ) { $ properties [ ] = new Property ( Property :: DESCRIPTION , $ this -> description ) ; } if ( $ this -> determiner !== null ) { $ properties [ ] = new Property ( Property :: DETERMINER , $ this -> determiner ) ; } foreach ( $ this -> images as $ image ) { $ properties = array_merge ( $ properties , $ image -> getProperties ( ) ) ; } if ( $ this -> locale !== null ) { $ properties [ ] = new Property ( Property :: LOCALE , $ this -> locale ) ; } foreach ( $ this -> localeAlternate as $ locale ) { $ properties [ ] = new Property ( Property :: LOCALE_ALTERNATE , $ locale ) ; } if ( $ this -> richAttachment !== null ) { $ properties [ ] = new Property ( Property :: RICH_ATTACHMENT , ( int ) $ this -> richAttachment ) ; } foreach ( $ this -> seeAlso as $ seeAlso ) { $ properties [ ] = new Property ( Property :: SEE_ALSO , $ seeAlso ) ; } if ( $ this -> siteName !== null ) { $ properties [ ] = new Property ( Property :: SITE_NAME , $ this -> siteName ) ; } if ( $ this -> type !== null ) { $ properties [ ] = new Property ( Property :: TYPE , $ this -> type ) ; } if ( $ this -> updatedTime !== null ) { $ properties [ ] = new Property ( Property :: UPDATED_TIME , $ this -> updatedTime -> format ( "c" ) ) ; } if ( $ this -> url !== null ) { $ properties [ ] = new Property ( Property :: URL , $ this -> url ) ; } foreach ( $ this -> videos as $ video ) { $ properties = array_merge ( $ properties , $ video -> getProperties ( ) ) ; } return $ properties ; }
docstring: Gets all properties set on this object.
  
  @return  array|Property[]
docstring_tokens: Gets all properties set on this object .