-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #376 from tienvx/remove-testing-commands
Remove testing commands
- Loading branch information
Showing
39 changed files
with
177 additions
and
504 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Tienvx\Bundle\MbtBundle\Annotation; | ||
|
||
abstract class AbstractAnnotation | ||
{ | ||
private $name; | ||
|
||
public function __construct(array $options) | ||
{ | ||
if (isset($options['value'])) { | ||
$options['name'] = $options['value']; | ||
unset($options['value']); | ||
} | ||
|
||
foreach ($options as $key => $value) { | ||
if (!property_exists($this, $key)) { | ||
throw new \InvalidArgumentException(sprintf('Property "%s" does not exist', $key)); | ||
} | ||
|
||
$this->$key = $value; | ||
} | ||
} | ||
|
||
public function getName() | ||
{ | ||
return $this->name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Tienvx\Bundle\MbtBundle\Annotation; | ||
|
||
use Doctrine\Common\Annotations\Annotation; | ||
use Doctrine\Common\Annotations\Annotation\Target; | ||
|
||
/** | ||
* @Annotation | ||
* @Target({"CLASS"}) | ||
*/ | ||
class Subject extends AbstractAnnotation | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.