Skip to content

Commit

Permalink
Added setName method
Browse files Browse the repository at this point in the history
  • Loading branch information
dmongeau committed Feb 22, 2018
1 parent 5e956ca commit 07b0e34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Folklore/EloquentJsonSchema/Support/JsonSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ public function setSchema($schema)
$this->attributes = array_except($schema, $this->schemaAttributes);
}

public function setName($name)
{
$this->name = $name;
return $this;
}

public function getName()
{
$class = get_class($this);
Expand Down

0 comments on commit 07b0e34

Please sign in to comment.