Skip to content

Commit

Permalink
fix schema file
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer committed Aug 27, 2020
1 parent 27ffc45 commit 1e60fc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions generator/templates/twig/Schema.php.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ namespace Spatie\SchemaOrg;
*/
class Schema
{
{% for type in types %} public static function {{ type.name | lcfirst }}(): {{ type.name }}
{% for type in types %}
public static function {{ type.className | lcfirst }}(): {{ type.className }}
{
return new {{ type.name }}();
return new {{ type.className }}();
}
{% endfor %}
{% endfor -%}
}
4 changes: 2 additions & 2 deletions src/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
*/
class Schema
{
public static function 3DModel(): 3DModel
public static function threeDimensionalModel(): ThreeDimensionalModel
{
return new 3DModel();
return new ThreeDimensionalModel();
}

public static function aMRadioChannel(): AMRadioChannel
Expand Down

0 comments on commit 1e60fc7

Please sign in to comment.