Example #1
0
File: Page.php Project: reliv/rcm
 /**
  * populateFromObject
  *
  * @param ApiPopulatableInterface $object
  * @param array                   $ignore
  *
  * @return void
  */
 public function populateFromObject(ApiPopulatableInterface $object, array $ignore = [])
 {
     if ($object instanceof Page) {
         $this->populate($object->toArray(), $ignore);
     }
 }
Example #2
0
File: Domain.php Project: reliv/rcm
 /**
  * populateFromObject
  *
  * @param ApiPopulatableInterface $object
  * @param array                   $ignore
  *
  * @return void
  */
 public function populateFromObject(ApiPopulatableInterface $object, array $ignore = [])
 {
     if ($object instanceof Domain) {
         $this->populate($object->toArray(['additionalDomains']), $ignore);
     }
 }