13 $object = current($this->objects);
14 if (! isset($object) || ! $object) {
21 if (! is_object($object)) {
22 $object = (object) $object;
24 if (! is_array($this->properties)) {
30 $r = new \ReflectionClass($object);
32 foreach ($this->objects as $object) {
33 if (is_array($object)) {
35 } elseif (is_object($object)) {
37 foreach ($this->properties as $prop) {
38 if ($r->hasProperty($prop)) {
39 $property = $r->getProperty($prop);
40 $property->setAccessible(
true);
41 $row[] = $this->
parseValue($property->getValue($object));
43 $this->messages[$prop] =
"Property {$prop} does not exists!";