fork download
  1. public function addEmployee($employee)
  2. {
  3. if (is_array($employee)) {
  4. $this->workers = array_merge($this->workers, $employee);
  5. } else {
  6. $this->workers[] = $employee;
  7. }
  8. }
  9.  
Success #stdin #stdout 0.01s 24400KB
stdin
Standard input is empty
stdout
    public function addEmployee($employee)
    {
        if (is_array($employee)) {
            $this->workers = array_merge($this->workers, $employee);
        } else {
            $this->workers[] = $employee;
        }
    }