model() public static method

public static model ( string $name ) : NotFoundException
$name string
return NotFoundException
示例#1
0
 /**
  * @param string $typeName
  *
  * @return TypeSchema
  * @throws NotFoundException
  */
 public function get(string $typeName) : TypeSchema
 {
     if (!array_key_exists($typeName, $this->types)) {
         throw NotFoundException::model($typeName);
     }
     return $this->types[$typeName];
 }