コード例 #1
0
 /**
  * Returns the first type descriptor with the given name.
  *
  * @param string $typeName The name of the type.
  *
  * @return BindingTypeDescriptor The type descriptor.
  *
  * @throws OutOfBoundsException If no type descriptor was set for the
  *                              given name.
  */
 public function getFirst($typeName)
 {
     return $this->map->getFirst($typeName);
 }
コード例 #2
0
 /**
  * @expectedException \OutOfBoundsException
  */
 public function testGetFirstFailsIfUnknownPrimaryKey()
 {
     $this->map->getFirst('foo');
 }