Skip to content

Commit 976407f

Browse files
author
Dustin Meiner
committed
Add offer method to Schema and SchemaInterface returning Offer instance
1 parent 7626558 commit 976407f

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/Schema/Schema.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Rami\SeoBundle\Schema;
44

55
use Rami\SeoBundle\Schema\Intangible\Audience;
6+
use Rami\SeoBundle\Schema\Intangible\Offer;
67
use Rami\SeoBundle\Schema\Intangible\Service;
78
use Rami\SeoBundle\Schema\Intangible\StructuredValue\ContactPoint\PostalAddress;
89
use Rami\SeoBundle\Schema\Place\AdministrativeArea;
@@ -233,6 +234,11 @@ public function mediaObject(): CreativeWork\MediaObject
233234
return new CreativeWork\MediaObject();
234235
}
235236

237+
public function offer(): Offer
238+
{
239+
return new Offer();
240+
}
241+
236242
public function imageObject(): ImageObject
237243
{
238244
return new ImageObject();

src/Schema/SchemaInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Rami\SeoBundle\Schema;
44

55
use Rami\SeoBundle\Schema\Intangible\Audience;
6+
use Rami\SeoBundle\Schema\Intangible\Offer;
67
use Rami\SeoBundle\Schema\Intangible\Service;
78
use Rami\SeoBundle\Schema\Intangible\StructuredValue\ContactPoint\PostalAddress;
89
use Rami\SeoBundle\Schema\Place\AdministrativeArea;
@@ -61,6 +62,7 @@ public function article(): Article;
6162
public function socialMediaPosting(): SocialMediaPosting;
6263
public function blogPosting(): BlogPosting;
6364
public function propertyValue(): PropertyValue;
65+
public function offer(): Offer;
6466
public function action(): Action;
6567
public function textObject(): TextObject;
6668
public function mediaObject(): CreativeWork\MediaObject;

0 commit comments

Comments
 (0)