Skip to content

Instantly share code, notes, and snippets.

<?php
namespace Moc\GscoreBundle\Document;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
/**
* @MongoDB\Document
*/
class Athlete
{
<?php
namespace Moc\UserBundle\DataFixtures\MongoDB;
use Doctrine\Common\DataFixtures\FixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
<?php
/**
* @package Joomla.Platform
* @subpackage Filter
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('JPATH_PLATFORM') or die;
<?php
class Father {
private $fProperty;
public function setProp($fProperty) {
$this->fProperty = $fProperty;
return $this;
}
<?php
class Father {
private $fProperty;
public function setProp($fProperty) {
$this->fProperty = $fProperty;
return $this;
}
<?php
class Request
{
static function getVar($name, $type = false){
$types = array( "bool","int","float", "string", "array", "object", "null" );
if (isset ($_REQUEST[$name])) {