{
"require": {
"friendsofsymfony/facebook-bundle": "*"
},
"minimum-stability": "stable"
}
. | |
├── src | |
│ └── MyCompany | |
│ └── AppBundle | |
│ ├── Command | |
│ └── Controller | |
└── vendor | |
└── MyCompany | |
├── DataSourceModule1 | |
│ ├── ExternalService |
<?php | |
class Foo | |
{ | |
private $foo = 'bar'; | |
public function generate() | |
{ | |
return function() { | |
return $this->foo; |
<?php | |
class Foo | |
{ | |
public function __construct() | |
{ | |
$this->value = __CLASS__; | |
} | |
} |
<?php | |
class Assertion | |
{ | |
private $assertion; | |
private $valiator; | |
public function __construct($assertion, callable $validator) | |
{ |
fields: | |
name: | |
type: string | |
label: "契約者名" | |
uname: | |
type: string | |
lablel: "ユーザ名" | |
email: | |
type: string | |
label: "メールアドレス" |
<?php | |
$date1 = new DateTime('@999994149'); | |
$date2 = (new DateTime)->setTimestamp(999994149); | |
var_dump($date1->getTimestamp()); | |
var_dump($date2->getTimestamp()); | |
$diff = $date1->diff($date2); |
<?php | |
namespace XCore\Entity; | |
class User | |
{ | |
// 元XoopsUserクラス | |
} | |
class Module |
class Test { | |
public static void main(String[] args) { | |
UserRepository userRepository = new UserRepository(); | |
userRepository.persist(new Object()); | |
userRepository.persist(new User()); | |
} | |
} | |
class Repository | |
{ |
{
"require": {
"friendsofsymfony/facebook-bundle": "*"
},
"minimum-stability": "stable"
}
<?php | |
/** | |
* ポリシーエンティティのモック | |
*/ | |
class Policy | |
{ | |
/** | |
* @return DateTime | |
*/ |