Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const STATUS_PRESENT = 'present';
- const STATUS_INSTALLED = 'installed';
- /**
- * @param string $status
- */
- public function setStatus($status)
- {
- if (!defined('static::SOME_' . strtoupper($status))) {
- throw new Kdyby\InvalidArgumentException('Invalid PackageVersion status "' . $status . '" was given.');
- }
- $this->status = strtolower($status);
- }
Advertisement
Add Comment
Please, Sign In to add comment