Skip to content

Conversation

@mryvlin
Copy link
Contributor

@mryvlin mryvlin commented Jan 9, 2017

No description provided.

Copy link
Member

@iVariable iVariable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for PR!
Please see comments.

{
if (in_array($priority, array('high', 'normal'), true)) {
$this->priority = $priority;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls add else throw Exception.
We should not mask possible dev typos.

* Optional.
*
* @var string
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move those string constants to explicit constants of this class.
const PRIORITY_NORMAL, etc

@iVariable iVariable changed the base branch from master to release/v0.5 January 13, 2017 23:12
@iVariable iVariable merged commit edb0e84 into CodeMonkeysRu:release/v0.5 Jan 13, 2017
@iVariable
Copy link
Member

Merged, released as v0.5. Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants