private function matches(Property $property, $group)
 {
     $baseType = $property->getType();
     while ($baseType instanceof ArrayType) {
         $baseType = $baseType->getBaseType();
     }
     return $baseType instanceof Type && strtolower($baseType->getName()) === "mongoid";
 }
 public function matches(Property $property, $group)
 {
     $baseType = $property->getType();
     while ($baseType instanceof ArrayType) {
         $baseType = $baseType->getBaseType();
     }
     return ($this->groups === null || in_array($group, $this->groups)) && $baseType instanceof Type && strtolower($baseType->getName()) === "datetime";
 }
Example #3
0
 /**
  * @return Property[]
  */
 public function getProperties()
 {
     if (!$this->propertiesInitialized) {
         $this->properties = array();
         foreach ($this->reflection->getProperties() as $key => $value) {
             $this->properties[$key] = Property::fromReflection($value);
         }
         $this->propertiesInitialized = true;
     }
     return $this->properties;
 }