<?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 * @package   Zend_Form
 */

namespace Zend\Form;

use \Zend\Form\Factory;

/**
 * @catagory Zend
 * @package  Zend_Form
 */
trait FormFactoryAwareTrait
{
    /**
     * @var \Zend\Form\Factory
     */
    protected $form_factory = null;

    /**
     * setFormFactory
     *
     * @param \Zend\Form\Factory $factory
     * @return
     */
    public function setFormFactory(Factory $factory)
    {
        $this->form_factory = $factory;

        return $this;
    }
}

Add a bunch of traits to ZF2
Add a bunch of traits to ZF2

As requested @

https://github.com/protecinnovations/zf2-traits/issues/1

This is the initial commit to start getting traits into ZF2.

We need to move our tests over - which are currently using Mockery.
