@@ -34,12 +34,12 @@ public function create(LinkItem $link): LinkItem
3434 try {
3535 $ statement = $ this ->pdo ->prepare ($ sql );
3636 $ statement ->execute ([
37- 'click_tag ' => $ link ->getClickTag ()->getValue (),
37+ 'click_tag ' => $ link ->getClickTag ()->asString (),
3838 'displayname ' => (string )$ link ->getMetaData ()->getDisplayName (),
39- 'description ' => $ link ->getMetaData ()->getDescription ()?->getValue (),
39+ 'description ' => $ link ->getMetaData ()->getDescription ()?->asString (),
4040 'url ' => (string )$ link ->getMetaData ()->getLinkUrl (),
4141 'is_active ' => $ link ->getMetaData ()->isActive () ? 1 : 0 ,
42- 'icon_name ' => $ link ->getIconName ()?->getValue (),
42+ 'icon_name ' => $ link ->getIconName ()?->asString (),
4343 'display_order ' => $ link ->getDisplayOrder (),
4444 ]);
4545
@@ -64,7 +64,7 @@ public function getByClickTag(ClickTag $tag): ?LinkItem
6464
6565 try {
6666 $ stmt = $ this ->pdo ->prepare ($ sql );
67- $ stmt ->execute (['clickTag ' => $ tag ->getValue ()]);
67+ $ stmt ->execute (['clickTag ' => $ tag ->asString ()]);
6868 $ row = $ stmt ->fetch ();
6969
7070 if ($ row === false ) {
@@ -126,10 +126,10 @@ public function update(LinkItem $linkItem): LinkItem
126126 $ statement = $ this ->pdo ->prepare ($ sql );
127127 $ statement ->execute ([
128128 'displayname ' => (string )$ linkItem ->getMetaData ()->getDisplayName (),
129- 'description ' => $ linkItem ->getMetaData ()->getDescription ()?->getValue (),
129+ 'description ' => $ linkItem ->getMetaData ()->getDescription ()?->asString (),
130130 'url ' => (string )$ linkItem ->getMetaData ()->getLinkUrl (),
131131 'is_active ' => $ linkItem ->getMetaData ()->isActive () ? 1 : 0 ,
132- 'icon_name ' => $ linkItem ->getIconName ()?->getValue (),
132+ 'icon_name ' => $ linkItem ->getIconName ()?->asString (),
133133 'link_id ' => $ linkItem ->getLinkId ()?->asInt(),
134134 'display_order ' => $ linkItem ->getDisplayOrder (),
135135 ]);
0 commit comments