1 | <?php |
||
14 | class ChangeDirectory extends AbstractApi |
||
15 | { |
||
16 | /** @var string */ |
||
17 | protected $name; |
||
18 | |||
19 | /** @var string */ |
||
20 | protected $newName; |
||
21 | |||
22 | /** @var string */ |
||
23 | protected $title; |
||
24 | |||
25 | /** @var string */ |
||
26 | protected $exportPattern; |
||
27 | |||
28 | /** @var string */ |
||
29 | protected $branch; |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public function execute() |
||
66 | |||
67 | /** |
||
68 | * @param string $branch |
||
69 | * |
||
70 | * @return ChangeDirectory |
||
71 | */ |
||
72 | public function setBranch($branch) |
||
78 | |||
79 | /** |
||
80 | * Set new directory export pattern. Is used to create directory name and path in resulted translations bundle. |
||
81 | * |
||
82 | * @param string $exportPattern |
||
83 | * |
||
84 | * @return ChangeDirectory |
||
85 | */ |
||
86 | public function setExportPattern($exportPattern) |
||
92 | |||
93 | /** |
||
94 | * Set new directory title to be displayed in Crowdin UI. |
||
95 | * |
||
96 | * @param string $title |
||
97 | * |
||
98 | * @return ChangeDirectory |
||
99 | */ |
||
100 | public function setTitle($title) |
||
106 | |||
107 | /** |
||
108 | * Set new directory name. |
||
109 | * |
||
110 | * @param string $newName |
||
111 | * |
||
112 | * @return ChangeDirectory |
||
113 | */ |
||
114 | public function setNewName($newName) |
||
120 | |||
121 | /** |
||
122 | * Set full directory path that should be modified (e.g. /MainPage/AboutUs). |
||
123 | * |
||
124 | * @param string $name |
||
125 | * |
||
126 | * @return ChangeDirectory |
||
127 | */ |
||
128 | public function setName($name) |
||
134 | } |
||
135 |