1
0
mirror of synced 2025-03-21 23:43:53 +03:00

Update en/cookbook/decorator-pattern.rst

This commit is contained in:
Juti Noppornpitak 2013-01-16 15:48:15 -05:00
parent 27ac88fe28
commit ec23961c7d

View File

@ -39,7 +39,7 @@ concrete subclasses, ``ConcreteComponent`` and ``ConcreteDecorator``.
*/ */
protected $id; protected $id;
/** @Column(type="string", nullable="true") */ /** @Column(type="string", nullable=true) */
protected $name; protected $name;
/** /**
@ -119,7 +119,7 @@ use a ``MappedSuperclass`` for this.
*/ */
public function __construct(Component $c) public function __construct(Component $c)
{ {
$this->setDecorates($c); $this->setDecorates($c);
} }
/** /**
@ -191,7 +191,7 @@ of the getSpecial() method to its return value.
class ConcreteDecorator extends Decorator class ConcreteDecorator extends Decorator
{ {
/** @Column(type="string", nullable="true") */ /** @Column(type="string", nullable=true) */
protected $special; protected $special;
/** /**