@@ -63,19 +63,19 @@ protected function initWidgetOptions(): Options
6363 ]);
6464 }
6565
66- public function onSelect (callable $ callback ): static
66+ public function onSelect (callable $ callback ): self
6767 {
6868 $ this ->bind ('<<TreeviewSelect>> ' , fn () => $ callback ($ this ->selected (), $ this ));
6969 return $ this ;
7070 }
7171
72- public function onOpen (callable $ callback ): static
72+ public function onOpen (callable $ callback ): self
7373 {
7474 $ this ->bind ('<<TreeviewOpen>> ' , fn () => $ callback ($ this ));
7575 return $ this ;
7676 }
7777
78- public function onClose (callable $ callback ): static
78+ public function onClose (callable $ callback ): self
7979 {
8080 $ this ->bind ('<<TreeviewClose>> ' , fn () => $ callback ($ this ));
8181 return $ this ;
@@ -101,21 +101,21 @@ private function setColumnHeader(Column $column): void
101101 $ this ->call ('heading ' , $ column ->id , '-text ' , $ column ->header ()->text );
102102 }
103103
104- public function add (Item $ item , string $ parentId = '' ): static
104+ public function add (Item $ item , string $ parentId = '' ): self
105105 {
106106 $ args = $ item ->options ()->asStringArray ();
107107 $ this ->call ('insert ' , $ parentId ?: '{} ' , 'end ' , ...$ args );
108108 return $ this ;
109109 }
110110
111- public function delete (Item ...$ items ): static
111+ public function delete (Item ...$ items ): self
112112 {
113113 $ ids = array_map (fn (Item $ item ) => $ item ->id , $ items );
114114 $ this ->call ('delete ' , ...$ ids );
115115 return $ this ;
116116 }
117117
118- public function focusItem (Item $ item ): static
118+ public function focusItem (Item $ item ): self
119119 {
120120 $ this ->call ('focus ' , $ item ->id );
121121 return $ this ;
@@ -171,7 +171,7 @@ public function getPrevItemId(string $itemId): string
171171 /**
172172 * Sets the viewport to the specified item.
173173 */
174- public function seeItemId (string $ itemId ): static
174+ public function seeItemId (string $ itemId ): self
175175 {
176176 $ this ->call ('see ' , $ itemId );
177177 return $ this ;
0 commit comments