All notable changes to this package will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
All notable changes to this package will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
I hereby claim:
To claim this, I am signing this object:
| Verifying that +mvriel is my blockchain ID. https://onename.com/mvriel |
| interface MapperInterface | |
| { | |
| public function map(); | |
| } | |
| abstract class BaseUserMapper | |
| { | |
| public function __construct($userEntity) | |
| { | |
| $this->user = $userEntity; |
| <?php | |
| class MyClass | |
| { | |
| public function test($dependency) | |
| { | |
| $dependency->mockedMethod('I have random arguments'); | |
| $dependency->mockedMethod( | |
| array( | |
| 'choices' => array( |
| <?php | |
| $resolverMock = m::mock('Symfony\Component\OptionsResolver\OptionsResolver'); | |
| $resolverMock->shouldReceive('setNormalizers'); | |
| $resolverMock->shouldReceive('setAllowedTypes'); | |
| $resolverMock->shouldReceive('setDefaults')->atMost()->once()->withAnyArgs(); | |
| $resolverMock->shouldReceive('setDefaults')->atLeast()->once()->with( | |
| array( | |
| 'label' => 'MyLabel', | |
| 'choices' => array( | |
| '1' => 'Option1', |
| <?php | |
| /** | |
| * Override default image downsize rules with a custom resizing service | |
| * | |
| * Defaults to false (no third-party downsizing), but can be overriden with an indexed | |
| * array of image details to use in place of WP's default downsizing rules. | |
| * | |
| * @since 2.5.0 | |
| * |
| Class IpRange | |
| { | |
| public function setStartingAddress($startingAddress) | |
| { | |
| InputValidator::assertValidAddress($startingAddress); | |
| $this->startingAddress = (int) $startingAddress; | |
| return $this; | |
| } | |
| } |
| <?php | |
| /** | |
| * @template <T> The type of the individual elements | |
| */ | |
| class ArrayCollection implements IteratorAggregate | |
| { | |
| private $elements; | |
| /** | |
| * @param array<T> $elements |
| <?php | |
| /* | |
| This code sample demonstrates several style for representing an option array with | |
| the following fields: name, label, type_id, visible, default. | |
| When designing this we should keep in mind that the option key may be represented | |
| by either a literal or a (class)constant. As such we mix and match those for | |
| illustrative purposes. | |
| */ |