isFlatType() protected method

Checks if the given type is a type that is not nested (simple type except array and object)
See also: isSimpleType()
protected isFlatType ( string $type ) : boolean
$type string type name from gettype()
return boolean True if it is a non-nested PHP type
コード例 #1
0
ファイル: JsonMapper.php プロジェクト: emadomar/telebot-sdk
 protected function isFlatType($type)
 {
     if ($this->bExceptionOnFlatType && parent::isFlatType($type)) {
         throw new \JsonMapper_Exception('Invalid data type for some properties');
     }
     return false;
 }