1 | <?php |
||
43 | class Sync extends Watch implements BuilderAwareInterface |
||
44 | { |
||
45 | |||
46 | /** |
||
47 | * The builder to internally create tasks. |
||
48 | * |
||
49 | * @var \Robo\Common\BuilderAwareTrait |
||
50 | */ |
||
51 | use BuilderAwareTrait; |
||
52 | |||
53 | /** |
||
54 | * The source directory. |
||
55 | * |
||
56 | * @var array |
||
57 | */ |
||
58 | protected $src; |
||
59 | |||
60 | /** |
||
61 | * The target directory. |
||
62 | * |
||
63 | * @var array |
||
64 | */ |
||
65 | protected $dest; |
||
66 | |||
67 | /** |
||
68 | * Set the source directory. |
||
69 | * |
||
70 | * @param string $src The source directory |
||
71 | * |
||
72 | * @return \AppserverIo\RoboTasks\Base\Sync The task instance |
||
73 | */ |
||
74 | public function src($src) |
||
79 | |||
80 | /** |
||
81 | * Set the destination directory. |
||
82 | * |
||
83 | * @param string $dest The destination directory |
||
84 | * |
||
85 | * @return \AppserverIo\RoboTasks\Base\Sync The task instance |
||
86 | */ |
||
87 | public function dest($dest) |
||
92 | |||
93 | /** |
||
94 | * Provides the main synchronize functionality. |
||
95 | * |
||
96 | * @param FilesystemEvent $event The event that has to be processed |
||
97 | * |
||
98 | * @return void |
||
99 | * @throws \Exception Is thrown, if a non supported event type will be passed |
||
100 | */ |
||
101 | public function sync(FilesystemEvent $event) |
||
132 | |||
133 | /** |
||
134 | * Invokes the task and its functionality. |
||
135 | * |
||
136 | * @return \Robo\Result The tasks result |
||
137 | * @see \Robo\Contract\TaskInterface::run() |
||
138 | */ |
||
139 | public function run() |
||
148 | |||
149 | /** |
||
150 | * Prepare and return the destination filename. |
||
151 | * |
||
152 | * @param string $filename The relative/absolute pathname of the file |
||
153 | * |
||
154 | * @return string The prepared destination filename |
||
155 | */ |
||
156 | protected function prepareDestFilename($filename) |
||
164 | } |
||
165 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..