РД
Size: a a a
РД
BH
🦔
BH
РД
🦔
BH
A
BH
class Repository {
/** throws exception **/
public function findModel(int id): Model {
$this->getModel($id);
}
public function findModelOrNull(int id): ?Model {
try{
$this->getModel($id);
} catch(…) return null;
}
private function getModel(int id): Model {
$this->repository->find(id);
}
}
A
class Repository {
/** throws exception **/
public function findModel(int id): Model {
$this->getModel($id);
}
public function findModelOrNull(int id): ?Model {
try{
$this->getModel($id);
} catch(…) return null;
}
private function getModel(int id): Model {
$this->repository->find(id);
}
}
AS
class Repository {
/** throws exception **/
public function findModel(int id): Model {
$this->getModel($id);
}
public function findModelOrNull(int id): ?Model {
try{
$this->getModel($id);
} catch(…) return null;
}
private function getModel(int id): Model {
$this->repository->find(id);
}
}
BH
AS
BH
AS
BH
EY
EY
BH
ОШ