ReviewOS

also looking at this

meemalabs/meema-client-php

Remove Unsupported Image Functionalities

#71
Merged glennmichael123 wants to merge remove-unsupported-image into main
1 file +55 -979
src/Functions/Image.phpmodified+55-979
Changes to src/Functions/Image.php
@@ -99,20 +99,6 @@ class Image
9999 return $this;
100100 }
101101
102 /**
103 * Set image rotation value.
104 *
105 * @param int $value
106 *
107 * @return $this
108 */
109 public function rotate($value)
110 {
111 $this->args = array_merge($this->args, ['rotate' => $value]);
112
113 return $this;
114 }
115
116102 /**
117103 * Set image background value.
118104 *
@@ -155,48 +141,6 @@ class Image
155141 return $this;
156142 }
157143
158 /**
159 * Set the contrast value.
160 *
161 * @param int $value
162 *
163 * @return $this
164 */
165 public function con($value)
166 {
167 $this->args = array_merge($this->args, ['con' => $value]);
168
169 return $this;
170 }
171
172 /**
173 * Set the exposure value.
174 *
175 * @param int $value
176 *
177 * @return $this
178 */
179 public function exp($value)
180 {
181 $this->args = array_merge($this->args, ['exp' => $value]);
182
183 return $this;
184 }
185
186 /**
187 * Set the gamma value.
188 *
189 * @param int $value
190 *
191 * @return $this
192 */
193 public function gam($value)
194 {
195 $this->args = array_merge($this->args, ['gam' => $value]);
196
197 return $this;
198 }
199
200144 /**
201145 * Set the hue shift value.
202146 *
@@ -211,34 +155,6 @@ class Image
211155 return $this;
212156 }
213157
214 /**
215 * Set the highlight value.
216 *
217 * @param int $value
218 *
219 * @return $this
220 */
221 public function high($value)
222 {
223 $this->args = array_merge($this->args, ['high' => $value]);
224
225 return $this;
226 }
227
228 /**
229 * Set the invert value.
230 *
231 * @param bool $value
232 *
233 * @return $this
234 */
235 public function invert($value)
236 {
237 $this->args = array_merge($this->args, ['invert' => $value]);
238
239 return $this;
240 }
241
242158 /**
243159 * Set the saturation value.
244160 *
@@ -253,20 +169,6 @@ class Image
253169 return $this;
254170 }
255171
256 /**
257 * Set the shadow value.
258 *
259 * @param int $value
260 *
261 * @return $this
262 */
263 public function shad($value)
264 {
265 $this->args = array_merge($this->args, ['shad' => $value]);
266
267 return $this;
268 }
269
270172 /**
271173 * Set the sharpen value.
272174 *
@@ -282,1066 +184,240 @@ class Image
282184 }
283185
284186 /**
285 * Set the unsharp mask value.
286 *
287 * @param int $value
288 *
289 * @return $this
290 */
291 public function usm($value)
292 {
293 $this->args = array_merge($this->args, ['usm' => $value]);
294
295 return $this;
296 }
297
298 /**
299 * Set the unsharp mask radius value.
300 *
301 * @param int $value
302 *
303 * @return $this
304 */
305 public function usmrad($value)
306 {
307 $this->args = array_merge($this->args, ['usmrad' => $value]);
308
309 return $this;
310 }
311
312 /**
313 * Set the vibrance value.
314 *
315 * @param int $value
316 *
317 * @return $this
318 */
319 public function vib($value)
320 {
321 $this->args = array_merge($this->args, ['vib' => $value]);
322
323 return $this;
324 }
325
326 /**
327 * Set the blend value.
187 * Set the border radius outer value.
328188 *
329189 * @param string $value
330190 *
331191 * @return $this
332192 */
333 public function blend($value)
193 public function pad($value)
334194 {
335 $this->args = array_merge($this->args, ['blend' => $value]);
195 $this->args = array_merge($this->args, ['pad' => $value]);
336196
337197 return $this;
338198 }
339199
340200 /**
341 * Set the blend-align value.
201 * Set the greyscale value.
342202 *
343 * @param string $value
203 * @param bool $value
344204 *
345205 * @return $this
346206 */
347 public function blendAlign($value)
207 public function greyscale($value)
348208 {
349 $this->args = array_merge($this->args, ['blend-align' => $value]);
209 $this->args = array_merge($this->args, ['greyscale' => $value]);
350210
351211 return $this;
352212 }
353213
354214 /**
355 * Set the blend-alpha value.
215 * Set the trim value.
356216 *
357217 * @param string $value
358218 *
359219 * @return $this
360220 */
361 public function blendAlpha($value)
221 public function trim($value)
362222 {
363 $this->args = array_merge($this->args, ['blend-alpha' => $value]);
223 $this->args = array_merge($this->args, ['trim' => $value]);
364224
365225 return $this;
366226 }
367227
368228 /**
369 * Set the blend-crop value.
229 * Set the face index value.
370230 *
371 * @param string $value
231 * @param int $value
372232 *
373233 * @return $this
374234 */
375 public function blendCrop($value)
235 public function faceindex($value)
376236 {
377 $this->args = array_merge($this->args, ['blend-crop' => $value]);
237 $this->args = array_merge($this->args, ['faceindex' => $value]);
378238
379239 return $this;
380240 }
381241
382242 /**
383 * Set the blend-fit value.
243 * Set the fill color value.
384244 *
385245 * @param string $value
386246 *
387247 * @return $this
388248 */
389 public function blendFit($value)
249 public function fillColor($value)
390250 {
391 $this->args = array_merge($this->args, ['blend-fit' => $value]);
251 $this->args = array_merge($this->args, ['fill-color' => $value]);
392252
393253 return $this;
394254 }
395255
396256 /**
397 * Set the blend-h value.
257 * Set the fill value.
398258 *
399259 * @param string $value
400260 *
401261 * @return $this
402262 */
403 public function blendH($value)
263 public function fill($value)
404264 {
405 $this->args = array_merge($this->args, ['blend-h' => $value]);
265 $this->args = array_merge($this->args, ['fill-color' => $value]);
406266
407267 return $this;
408268 }
409269
410270 /**
411 * Set the blend-mode value.
271 * Set the color space value.
412272 *
413273 * @param string $value
414274 *
415275 * @return $this
416276 */
417 public function blendMode($value)
418 {
419 $this->args = array_merge($this->args, ['blend-mode' => $value]);
420
421 return $this;
422 }
423
424 /**
425 * Set the blend-pad value.
426 *
427 * @param int $value
428 *
429 * @return $this
430 */
431 public function blendPad($value)
277 public function cs($value)
432278 {
433 $this->args = array_merge($this->args, ['blend-pad' => $value]);
279 $this->args = array_merge($this->args, ['cs' => $value]);
434280
435281 return $this;
436282 }
437283
438284 /**
439 * Set the blend-size value.
285 * Set the device pixel ration value.
440286 *
441287 * @param string $value
442288 *
443289 * @return $this
444290 */
445 public function blendSize($value)
446 {
447 $this->args = array_merge($this->args, ['blend-size' => $value]);
448
449 return $this;
450 }
451
452 /**
453 * Set the blend-width value.
454 *
455 * @param int $value
456 *
457 * @return $this
458 */
459 public function blendW($value)
460 {
461 $this->args = array_merge($this->args, ['blend-w' => $value]);
462
463 return $this;
464 }
465
466 /**
467 * Set the blend-x value.
468 *
469 * @param int $value
470 *
471 * @return $this
472 */
473 public function blendX($value)
291 public function dpr($value)
474292 {
475 $this->args = array_merge($this->args, ['blend-x' => $value]);
293 $this->args = array_merge($this->args, ['dpr' => $value]);
476294
477295 return $this;
478296 }
479297
480298 /**
481 * Set the blend-y value.
299 * Set the extend value.
482300 *
483301 * @param int $value
484302 *
485303 * @return $this
486304 */
487 public function blendY($value)
488 {
489 $this->args = array_merge($this->args, ['blend-y' => $value]);
490
491 return $this;
492 }
493
494 /**
495 * Set the border size color value.
496 *
497 * @param string $value
498 *
499 * @return $this
500 */
501 public function border($value)
502 {
503 $this->args = array_merge($this->args, ['border' => $value]);
504
505 return $this;
506 }
507
508 /**
509 * Set the border inner radius value.
510 *
511 * @param string $value
512 *
513 * @return $this
514 */
515 public function borderRadiusInner($value)
305 public function extend($value)
516306 {
517 $this->args = array_merge($this->args, ['border-radius-inner' => $value]);
307 $this->args = array_merge($this->args, ['extend' => $value]);
518308
519309 return $this;
520310 }
521311
522312 /**
523 * Set the border radius outer value.
313 * Set the extract value.
524314 *
525315 * @param string $value
526316 *
527317 * @return $this
528318 */
529 public function borderRadius($value)
319 public function extract($value)
530320 {
531 $this->args = array_merge($this->args, ['border-radius' => $value]);
321 $this->args = array_merge($this->args, ['extract' => $value]);
532322
533323 return $this;
534324 }
535325
536326 /**
537 * Set the border radius outer value.
327 * Set the crop value.
538328 *
539329 * @param string $value
540330 *
541331 * @return $this
542332 */
543 public function pad($value)
544 {
545 $this->args = array_merge($this->args, ['pad' => $value]);
546
547 return $this;
548 }
549
550 /**
551 * Set the greyscale value.
552 *
553 * @param bool $value
554 *
555 * @return $this
556 */
557 public function greyscale($value)
333 public function crop($value)
558334 {
559 $this->args = array_merge($this->args, ['greyscale' => $value]);
335 $this->args = array_merge($this->args, ['crop' => $value]);
560336
561337 return $this;
562338 }
563339
564340 /**
565 * Set the trim value.
341 * Set the max height value.
566342 *
567 * @param string $value
343 * @param int $value
568344 *
569345 * @return $this
570346 */
571 public function trim($value)
347 public function maxH($value)
572348 {
573 $this->args = array_merge($this->args, ['trim' => $value]);
349 $this->args = array_merge($this->args, ['max-h' => $value]);
574350
575351 return $this;
576352 }
577353
578354 /**
579 * Set the face index value.
355 * Set the min height value.
580356 *
581357 * @param int $value
582358 *
583359 * @return $this
584360 */
585 public function faceindex($value)
361 public function minH($value)
586362 {
587 $this->args = array_merge($this->args, ['faceindex' => $value]);
363 $this->args = array_merge($this->args, ['min-h' => $value]);
588364
589365 return $this;
590366 }
591367
592368 /**
593 * Set the face index value.
369 * Set the max width value.
594370 *
595371 * @param int $value
596372 *
597373 * @return $this
598374 */
599 public function facepad($value)
375 public function maxW($value)
600376 {
601 $this->args = array_merge($this->args, ['facepad' => $value]);
377 $this->args = array_merge($this->args, ['max-w' => $value]);
602378
603379 return $this;
604380 }
605381
606382 /**
607 * Set the fill color value.
383 * Set the min width value.
608384 *
609 * @param string $value
385 * @param int $value
610386 *
611387 * @return $this
612388 */
613 public function fillColor($value)
389 public function minW($value)
614390 {
615 $this->args = array_merge($this->args, ['fill-color' => $value]);
391 $this->args = array_merge($this->args, ['min-w' => $value]);
616392
617393 return $this;
618394 }
619395
620396 /**
621 * Set the fill value.
397 * Set the resize fit mode value.
622398 *
623399 * @param string $value
624400 *
625401 * @return $this
626402 */
627 public function fill($value)
403 public function fit($value)
628404 {
629 $this->args = array_merge($this->args, ['fill-color' => $value]);
405 $this->args = array_merge($this->args, ['fit' => $value]);
630406
631407 return $this;
632408 }
633409
634410 /**
635 * Set the chroma subsampling value.
411 * Set the pixellate value.
636412 *
637 * @param string $value
413 * @param int $value
638414 *
639415 * @return $this
640416 */
641 public function chroma($value)
642 {
643 $this->args = array_merge($this->args, ['chromasub' => $value]);
644
645 return $this;
646 }
647
648 /**
649 * Set the client hints value.
650 *
651 * @param string $value
652 *
653 * @return $this
654 */
655 public function ch($value)
656 {
657 $this->args = array_merge($this->args, ['ch' => $value]);
658
659 return $this;
660 }
661
662 /**
663 * Set the client hints value.
664 *
665 * @param int $value
666 *
667 * @return $this
668 */
669 public function colorquant($value)
670 {
671 $this->args = array_merge($this->args, ['colorquant' => $value]);
672
673 return $this;
674 }
675
676 /**
677 * Set the color space value.
678 *
679 * @param string $value
680 *
681 * @return $this
682 */
683 public function cs($value)
684 {
685 $this->args = array_merge($this->args, ['cs' => $value]);
686
687 return $this;
688 }
689
690 /**
691 * Set the dots per inch value.
692 *
693 * @param int $value
694 *
695 * @return $this
696 */
697 public function dpi($value)
698 {
699 $this->args = array_merge($this->args, ['dpi' => $value]);
700
701 return $this;
702 }
703
704 /**
705 * Set lossless value.
706 *
707 * @param bool $value
708 *
709 * @return $this
710 */
711 public function lossless($value)
712 {
713 $this->args = array_merge($this->args, ['lossless' => $value]);
714
715 return $this;
716 }
717
718 /**
719 * Set the output format value.
720 *
721 * @param bool $value
722 *
723 * @return $this
724 */
725 public function fm($value)
726 {
727 $this->args = array_merge($this->args, ['fm' => $value]);
728
729 return $this;
730 }
731
732 /**
733 * Set the flop value.
734 *
735 * @param bool $value
736 *
737 * @return $this
738 */
739 public function flop($value)
740 {
741 $this->args = array_merge($this->args, ['flop' => $value]);
742
743 return $this;
744 }
745
746 /**
747 * Set the automatic value.
748 *
749 * @param string $value
750 *
751 * @return $this
752 */
753 public function auto($value)
754 {
755 $this->args = array_merge($this->args, ['auto' => $value]);
756
757 return $this;
758 }
759
760 /**
761 * Set the expiration automatic value.
762 *
763 * @param string $value
764 *
765 * @return $this
766 */
767 public function expires($value)
768 {
769 $this->args = array_merge($this->args, ['expires' => $value]);
770
771 return $this;
772 }
773
774 /**
775 * Set the device pixel ration value.
776 *
777 * @param string $value
778 *
779 * @return $this
780 */
781 public function dpr($value)
782 {
783 $this->args = array_merge($this->args, ['dpr' => $value]);
784
785 return $this;
786 }
787
788 /**
789 * Set the mask corner radius.
790 *
791 * @param string $value
792 *
793 * @return $this
794 */
795 public function cornerRadius($value)
796 {
797 $this->args = array_merge($this->args, ['corner-radius' => $value]);
798
799 return $this;
800 }
801
802 /**
803 * Set the mask corner radius.
804 *
805 * @param string $value
806 *
807 * @return $this
808 */
809 public function mask($value)
810 {
811 $this->args = array_merge($this->args, ['mask' => $value]);
812
813 return $this;
814 }
815
816 /**
817 * Set the noise reduction value.
818 *
819 * @param int $value
820 *
821 * @return $this
822 */
823 public function nr($value)
824 {
825 $this->args = array_merge($this->args, ['nr' => $value]);
826
827 return $this;
828 }
829
830 /**
831 * Set the noise reduction sharpen value.
832 *
833 * @param int $value
834 *
835 * @return $this
836 */
837 public function nrs($value)
838 {
839 $this->args = array_merge($this->args, ['nrs' => $value]);
840
841 return $this;
842 }
843
844 /**
845 * Set the extend value.
846 *
847 * @param int $value
848 *
849 * @return $this
850 */
851 public function extend($value)
852 {
853 $this->args = array_merge($this->args, ['extend' => $value]);
854
855 return $this;
856 }
857
858 /**
859 * Set the extract value.
860 *
861 * @param string $value
862 *
863 * @return $this
864 */
865 public function extract($value)
866 {
867 $this->args = array_merge($this->args, ['extract' => $value]);
868
869 return $this;
870 }
871
872 /**
873 * Set the flip axis value.
874 *
875 * @param string $value
876 *
877 * @return $this
878 */
879 public function flip($value)
880 {
881 $this->args = array_merge($this->args, ['flip' => $value]);
882
883 return $this;
884 }
885
886 /**
887 * Set the orientation value.
888 *
889 * @param int $value
890 *
891 * @return $this
892 */
893 public function orient($value)
894 {
895 $this->args = array_merge($this->args, ['orient' => $value]);
896
897 return $this;
898 }
899
900 /**
901 * Set the crop value.
902 *
903 * @param string $value
904 *
905 * @return $this
906 */
907 public function crop($value)
908 {
909 $this->args = array_merge($this->args, ['crop' => $value]);
910
911 return $this;
912 }
913
914 /**
915 * Set the max height value.
916 *
917 * @param int $value
918 *
919 * @return $this
920 */
921 public function maxH($value)
922 {
923 $this->args = array_merge($this->args, ['max-h' => $value]);
924
925 return $this;
926 }
927
928 /**
929 * Set the min height value.
930 *
931 * @param int $value
932 *
933 * @return $this
934 */
935 public function minH($value)
936 {
937 $this->args = array_merge($this->args, ['min-h' => $value]);
938
939 return $this;
940 }
941
942 /**
943 * Set the max width value.
944 *
945 * @param int $value
946 *
947 * @return $this
948 */
949 public function maxW($value)
950 {
951 $this->args = array_merge($this->args, ['max-w' => $value]);
952
953 return $this;
954 }
955
956 /**
957 * Set the min width value.
958 *
959 * @param int $value
960 *
961 * @return $this
962 */
963 public function minw($value)
964 {
965 $this->args = array_merge($this->args, ['min-w' => $value]);
966
967 return $this;
968 }
969
970 /**
971 * Set the resize fit mode value.
972 *
973 * @param string $value
974 *
975 * @return $this
976 */
977 public function fit($value)
978 {
979 $this->args = array_merge($this->args, ['fit' => $value]);
980
981 return $this;
982 }
983
984 /**
985 * Set the source rectangle region value.
986 *
987 * @param string $value
988 *
989 * @return $this
990 */
991 public function rect($value)
992 {
993 $this->args = array_merge($this->args, ['rect' => $value]);
994
995 return $this;
996 }
997
998 /**
999 * Set the duotone value.
1000 *
1001 * @param string $value
1002 *
1003 * @return $this
1004 */
1005 public function duotone($value)
1006 {
1007 $this->args = array_merge($this->args, ['duotone' => $value]);
1008
1009 return $this;
1010 }
1011
1012 /**
1013 * Set the duotone-alpha value.
1014 *
1015 * @param int $value
1016 *
1017 * @return $this
1018 */
1019 public function duotoneAlpha($value)
1020 {
1021 $this->args = array_merge($this->args, ['duotone-alpha' => $value]);
1022
1023 return $this;
1024 }
1025
1026 /**
1027 * Set the halftone value.
1028 *
1029 * @param int $value
1030 *
1031 * @return $this
1032 */
1033 public function halftone($value)
1034 {
1035 $this->args = array_merge($this->args, ['halftone' => $value]);
1036
1037 return $this;
1038 }
1039
1040 /**
1041 * Set the halftone value.
1042 *
1043 * @param string $value
1044 *
1045 * @return $this
1046 */
1047 public function monochrome($value)
1048 {
1049 $this->args = array_merge($this->args, ['monochrome' => $value]);
1050
1051 return $this;
1052 }
1053
1054 /**
1055 * Set the pixellate value.
1056 *
1057 * @param int $value
1058 *
1059 * @return $this
1060 */
1061 public function px($value)
417 public function px($value)
1062418 {
1063419 $this->args = array_merge($this->args, ['px' => $value]);
1064420
1065421 return $this;
1066422 }
1067
1068 /**
1069 * Set the sepia value.
1070 *
1071 * @param int $value
1072 *
1073 * @return $this
1074 */
1075 public function sepia($value)
1076 {
1077 $this->args = array_merge($this->args, ['sepia' => $value]);
1078
1079 return $this;
1080 }
1081
1082 /**
1083 * Set the text align value.
1084 *
1085 * @param string $value
1086 *
1087 * @return $this
1088 */
1089 public function txtAlign($value)
1090 {
1091 $this->args = array_merge($this->args, ['txt-align' => $value]);
1092
1093 return $this;
1094 }
1095
1096 /**
1097 * Set the text clipping mode value.
1098 *
1099 * @param string $value
1100 *
1101 * @return $this
1102 */
1103 public function txtClip($value)
1104 {
1105 $this->args = array_merge($this->args, ['txt-clip' => $value]);
1106
1107 return $this;
1108 }
1109
1110 /**
1111 * Set the text color value.
1112 *
1113 * @param string $value
1114 *
1115 * @return $this
1116 */
1117 public function txtColor($value)
1118 {
1119 $this->args = array_merge($this->args, ['txt-color' => $value]);
1120
1121 return $this;
1122 }
1123
1124 /**
1125 * Set the text fit mode value.
1126 *
1127 * @param string $value
1128 *
1129 * @return $this
1130 */
1131 public function txtFit($value)
1132 {
1133 $this->args = array_merge($this->args, ['txt-fit' => $value]);
1134
1135 return $this;
1136 }
1137
1138 /**
1139 * Set the text font value.
1140 *
1141 * @param string $value
1142 *
1143 * @return $this
1144 */
1145 public function txtFont($value)
1146 {
1147 $this->args = array_merge($this->args, ['txt-font' => $value]);
1148
1149 return $this;
1150 }
1151
1152 /**
1153 * Set the text font size value.
1154 *
1155 * @param int $value
1156 *
1157 * @return $this
1158 */
1159 public function txtSize($value)
1160 {
1161 $this->args = array_merge($this->args, ['txt-size' => $value]);
1162
1163 return $this;
1164 }
1165
1166 /**
1167 * Set the text ligatures value.
1168 *
1169 * @param int $value
1170 *
1171 * @return $this
1172 */
1173 public function txtLig($value)
1174 {
1175 $this->args = array_merge($this->args, ['txt-lig' => $value]);
1176
1177 return $this;
1178 }
1179
1180 /**
1181 * Set the text outline value.
1182 *
1183 * @param int $value
1184 *
1185 * @return $this
1186 */
1187 public function txtLine($value)
1188 {
1189 $this->args = array_merge($this->args, ['txt-line' => $value]);
1190
1191 return $this;
1192 }
1193
1194 /**
1195 * Set the text outline color value.
1196 *
1197 * @param string $value
1198 *
1199 * @return $this
1200 */
1201 public function txtLineColor($value)
1202 {
1203 $this->args = array_merge($this->args, ['txt-line-color' => $value]);
1204
1205 return $this;
1206 }
1207
1208 /**
1209 * Set the text padding value.
1210 *
1211 * @param int $value
1212 *
1213 * @return $this
1214 */
1215 public function txtPad($value)
1216 {
1217 $this->args = array_merge($this->args, ['txt-pad' => $value]);
1218
1219 return $this;
1220 }
1221
1222 /**
1223 * Set the text shadow value.
1224 *
1225 * @param int $value
1226 *
1227 * @return $this
1228 */
1229 public function txtShad($value)
1230 {
1231 $this->args = array_merge($this->args, ['txt-shad' => $value]);
1232
1233 return $this;
1234 }
1235
1236 /**
1237 * Set the text string value.
1238 *
1239 * @param string $value
1240 *
1241 * @return $this
1242 */
1243 public function txt($value)
1244 {
1245 $this->args = array_merge($this->args, ['txt' => $value]);
1246
1247 return $this;
1248 }
1249
1250 /**
1251 * Set the text width value.
1252 *
1253 * @param int $value
1254 *
1255 * @return $this
1256 */
1257 public function txtWidth($value)
1258 {
1259 $this->args = array_merge($this->args, ['txt-width' => $value]);
1260
1261 return $this;
1262 }
1263
1264 /**
1265 * Set the trim color value.
1266 *
1267 * @param string $value
1268 *
1269 * @return $this
1270 */
1271 public function trimColor($value)
1272 {
1273 $this->args = array_merge($this->args, ['trim-color' => $value]);
1274
1275 return $this;
1276 }
1277
1278 /**
1279 * Set the trim mean difference value.
1280 *
1281 * @param int $value
1282 *
1283 * @return $this
1284 */
1285 public function trimMd($value)
1286 {
1287 $this->args = array_merge($this->args, ['trim-md' => $value]);
1288
1289 return $this;
1290 }
1291
1292 /**
1293 * Set the trim standard deviation value.
1294 *
1295 * @param int $value
1296 *
1297 * @return $this
1298 */
1299 public function trimSd($value)
1300 {
1301 $this->args = array_merge($this->args, ['trim-sd' => $value]);
1302
1303 return $this;
1304 }
1305
1306 /**
1307 * Set the trim tolerance value.
1308 *
1309 * @param int $value
1310 *
1311 * @return $this
1312 */
1313 public function trimTol($value)
1314 {
1315 $this->args = array_merge($this->args, ['trim-tol' => $value]);
1316
1317 return $this;
1318 }
1319
1320 /**
1321 * Set the text leading value.
1322 *
1323 * @param int $value
1324 *
1325 * @return $this
1326 */
1327 public function txtLead($value)
1328 {
1329 $this->args = array_merge($this->args, ['txt-lead' => $value]);
1330
1331 return $this;
1332 }
1333
1334 /**
1335 * Set the text leading value.
1336 *
1337 * @param int $value
1338 *
1339 * @return $this
1340 */
1341 public function txtTrack($value)
1342 {
1343 $this->args = array_merge($this->args, ['txt-track' => $value]);
1344
1345 return $this;
1346 }
1347423}