This file contains hidden or 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
<?php | |
/** | |
* @author Kakhramonov Javlonbek <[email protected]> | |
* @copyright 2018 Foreach.Soft Ltd. (http://each.uz) | |
*/ | |
declare(strict_types=1); | |
namespace Acme\Value; | |
use DateTimeImmutable; |
This file contains hidden or 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
<?php | |
// clean but complex way | |
namespace YourDomain\Entities | |
{ | |
use Doctrine\Common\Collections\Collection as DoctrineCollection; | |
/** @MappedSuperclass */ | |
class SomeEntity |
This file contains hidden or 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
/** | |
* Batch IP addresses inputter to kerio control ip address groups | |
* Input IP addresses must be splitted with character to match \s regex pattern | |
* | |
* @author Javlonbek Kakhramonov <[email protected]> | |
*/ | |
(function (selector) { | |
var ips = prompt(); | |
var ipAdresses = ips.split(/\s/); | |
var addBtn = selector('#addressGroupList_k_bottomToolbar_k_btnAdd button'); |
This file contains hidden or 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
<?php | |
/** | |
* @author Kakhramonov Javlonbek <[email protected]> | |
*/ | |
namespace Module\Entity; | |
use Application\Entity\TranslatableEntityTrait; | |
use Doctrine\Common\Collections\ArrayCollection; | |
use Doctrine\ORM\Mapping as ORM; |
This file contains hidden or 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
<?php | |
/** | |
* Create date time with weekday placeholder | |
* | |
* @param string $format | |
* @param string $time | |
* @param null|DateTime $timezone | |
* @return bool|DateTime | |
*/ |
This file contains hidden or 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
<?php | |
/** | |
* @author Kakhramonov Javlonbek <[email protected]> | |
* @version 1.0.0 | |
*/ | |
namespace Application\Factory; | |
use Zend\ServiceManager\ServiceLocatorInterface; | |
use Zend\Mvc\Service\RouterConfigTrait; | |
use Zend\Mvc\Router\RouteStackInterface; |
This file contains hidden or 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
<?php | |
/** | |
* @author Kakhramonov Javlonbek <[email protected]> | |
* @version 1.1.2 | |
*/ | |
namespace Application\Factory; | |
use Interop\Container\ContainerInterface; | |
use Application\Router\LocalizedTreeRouteStack; | |
use Zend\Router\RouterConfigTrait; |