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