Exemplo n.º 1
0
 public function __construct($person = null)
 {
     $this->person = $person;
     if ($this->person !== null && (is_int($this->person) || ctype_digit($this->person))) {
         $this->person = PersonFacade::find($this->person);
     }
 }
Exemplo n.º 2
0
 public function __construct(Request $request)
 {
     $this->request = $request;
     $this->editPerson = Person::find($this->request->route()->getParameter('id'));
 }