Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. <?php
  2.  
  3. class Potestagem extends Job
  4. {
  5. protected $local = 'Belo Horizonte - Minas Gerais';
  6. protected $hours = '44 horas semanais (Segunda a sexta das 9 as 18:48';
  7. protected $descrition = 'Potestatem contrata programdor com experiência.
  8. Enviar currículo com pretenção salarial';
  9. protected $salary;
  10. protected $required = [
  11. 'PHP OO',
  12. 'SGBD + SQL',
  13. 'Javascript + JQuery',
  14. 'HTML5 + CSS',
  15. 'Bootstrap',
  16. 'Sistema de controle de versão (git, svn)',
  17. 'Conhecimento em configuração de servidores linux (arquitetura de serviços na AWS)',
  18. ];
  19.  
  20. protected $differential = [
  21. 'REST/SOAP',
  22. 'Domínio de processos da Amazon.',
  23. 'Conhecimento de Agile: metodologias com Scrum e Kanbna',
  24. 'SEO',
  25. 'Angular',
  26. 'Framework MVC - (Preferencia Laravel)',
  27. // 'Sistema de controle de versão (git, svn)', // ?? Required or Differential?
  28. ];
  29.  
  30. protected $email = 'rh@potestatem.com.br';
  31. public $subject;
  32. public $body;
  33. public $curriculum;
  34.  
  35. public function __construct(string $name, $curriculum)
  36. {
  37. $this->subject = '[Desenvolvedor Sênior PHP] - '.$name;
  38. }
  39.  
  40. public function setBody($curriculum)
  41. {
  42. $this->body = 'Porque quer trabalhar na postestatem?';
  43. $this->curriculum = $curriculum;
  44. if ($curriculum instanceof PDF) {
  45. return $this->attach($curriculum);
  46. }
  47.  
  48. $this->body .= $curriculum;
  49. }
  50.  
  51. public function send()
  52. {
  53. if ($this->isValid($this->curriculum) && $this->sendEmail($this->email, $this->subject, $this->body)) {
  54. return 'Good luck!';
  55. }
  56.  
  57. return false;
  58. }
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement