Ejemplo n.º 1
0
 /**
  * Propertied arrays or objects are valid objects to use to populate the resource
  *
  * @param array|object $entity
  *
  * @return bool
  */
 protected function isValidEntity($entity)
 {
     if (is_object($entity)) {
         return true;
     }
     if (ArrayHelper::isPropertied($entity)) {
         return true;
     }
     return false;
 }