Checks if the given type is a type that is not nested
(simple type except array and object)
protected isFlatType ( string $type ) : boolean | ||
$type | string | type name from gettype() |
리턴 | boolean | True if it is a non-nested PHP type |
protected function isFlatType($type) { if ($this->bExceptionOnFlatType && parent::isFlatType($type)) { throw new \JsonMapper_Exception('Invalid data type for some properties'); } return false; }