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() |
||
68 | |||
69 | /** |
||
70 | * @param string $branch |
||
71 | * |
||
72 | * @return ChangeDirectory |
||
73 | */ |
||
74 | public function setBranch($branch) |
||
80 | |||
81 | /** |
||
82 | * Set new directory export pattern. Is used to create directory name and path in resulted translations bundle. |
||
83 | * |
||
84 | * @param string $exportPattern |
||
85 | * |
||
86 | * @return ChangeDirectory |
||
87 | */ |
||
88 | public function setExportPattern($exportPattern) |
||
94 | |||
95 | /** |
||
96 | * Set new directory title to be displayed in Crowdin UI. |
||
97 | * |
||
98 | * @param string $title |
||
99 | * |
||
100 | * @return ChangeDirectory |
||
101 | */ |
||
102 | public function setTitle($title) |
||
108 | |||
109 | /** |
||
110 | * Set new directory name. |
||
111 | * |
||
112 | * @param string $newName |
||
113 | * |
||
114 | * @return ChangeDirectory |
||
115 | */ |
||
116 | public function setNewName($newName) |
||
122 | |||
123 | /** |
||
124 | * Set full directory path that should be modified (e.g. /MainPage/AboutUs). |
||
125 | * |
||
126 | * @param string $name |
||
127 | * |
||
128 | * @return ChangeDirectory |
||
129 | */ |
||
130 | public function setName($name) |
||
136 | } |
||
137 |