1 | <?php |
||
19 | class CreatePostCommand extends ConsoleCommand |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $title; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $content; |
||
30 | |||
31 | /** |
||
32 | * CreatePostCommand constructor. |
||
33 | * |
||
34 | * @param string $title |
||
35 | * @param string $content |
||
36 | */ |
||
37 | public function __construct($title, $content = null) |
||
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | public function title() |
||
50 | |||
51 | /** |
||
52 | * @param string $title |
||
53 | */ |
||
54 | public function setTitle($title) |
||
58 | |||
59 | /** |
||
60 | * @return string |
||
61 | */ |
||
62 | public function content() |
||
66 | |||
67 | /** |
||
68 | * @param string $content |
||
69 | */ |
||
70 | public function setContent($content) |
||
74 | } |
||
75 |