Skip to content

Commit

Permalink
Merge branch 'master' of github.com:gong023/turmeric-spice
Browse files Browse the repository at this point in the history
  • Loading branch information
gong023 committed Oct 14, 2015
2 parents 1c530a1 + 68b0b89 commit 5d103f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ $user->setName('Taro');
$user->getName(); // 'Taro'
```

### may or must
# may or must

TurmericSpice has two dsl, `may` and `must`.

Expand Down Expand Up @@ -109,10 +109,10 @@ $user->getFriendIds(); // If key is not defined, you will get InvalidAttributeE
$user->getRestricted(); // return false. casted automatically.
```

### IDE friendly
# IDE friendly

As with MagicSpice, TurmericSpice is also IDE friendly.

### More example
# More example

If you want to know more, [see Example and test cases](https://github.com/gong023/turmeric-spice/tree/master/tests/Example).
2 changes: 0 additions & 2 deletions src/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ public function mustHaveInstanceCollection($key, $className)
public function set($key, $value)
{
$this->attributes[$key] = $value;

return $this;
}

public function getRaw()
Expand Down
4 changes: 3 additions & 1 deletion src/ReadWriteAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ private function setValue($value)
$propertyName = $this->getCalledPropertyName();
}

return $this->attributes->set($propertyName, $value);
$this->attributes->set($propertyName, $value);

return $this;
}
}

0 comments on commit 5d103f7

Please sign in to comment.