get() public method

Get a new entity object, or an existing entity from identifiers
public get ( mixed $identifier = false ) : mixed
$identifier mixed Primary key or array of key/values
return mixed Depends on input false If $identifier is scalar and no entity exists
 /**
  * {@inheritdoc}
  */
 public function findById($speakerId)
 {
     $speaker = $this->mapper->get($speakerId);
     if (false === $speaker) {
         throw new EntityNotFoundException();
     }
     return $speaker;
 }