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"; }
private function matches(Property $property, $group) { $baseType = $property->getType(); while ($baseType instanceof ArrayType) { $baseType = $baseType->getBaseType(); } return $baseType instanceof Type && strtolower($baseType->getName()) === "mongoid"; }