Skip to content

Commit

Permalink
removed Nette\SmartObject
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Aug 29, 2023
1 parent bd00bad commit 54881e8
Show file tree
Hide file tree
Showing 18 changed files with 0 additions and 49 deletions.
2 changes: 0 additions & 2 deletions src/PhpGenerator/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
*/
final class Attribute
{
use Nette\SmartObject;

private string $name;

/** @var mixed[] */
Expand Down
1 change: 0 additions & 1 deletion src/PhpGenerator/ClassLike.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/
abstract class ClassLike
{
use Nette\SmartObject;
use Traits\CommentAware;
use Traits\AttributeAware;

Expand Down
3 changes: 0 additions & 3 deletions src/PhpGenerator/ClassType.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@

/**
* Class description.
*
* @property-deprecated Method[] $methods
* @property-deprecated Property[] $properties
*/
final class ClassType extends ClassLike
{
Expand Down
5 changes: 0 additions & 5 deletions src/PhpGenerator/Closure.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,12 @@

namespace Nette\PhpGenerator;

use Nette;


/**
* Closure.
*
* @property-deprecated string $body
*/
final class Closure
{
use Nette\SmartObject;
use Traits\FunctionLike;
use Traits\AttributeAware;

Expand Down
3 changes: 0 additions & 3 deletions src/PhpGenerator/Constant.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@

namespace Nette\PhpGenerator;

use Nette;


/**
* Class constant.
*/
final class Constant
{
use Nette\SmartObject;
use Traits\NameAware;
use Traits\VisibilityAware;
use Traits\CommentAware;
Expand Down
3 changes: 0 additions & 3 deletions src/PhpGenerator/EnumCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@

namespace Nette\PhpGenerator;

use Nette;


/**
* Enum case.
*/
final class EnumCase
{
use Nette\SmartObject;
use Traits\NameAware;
use Traits\CommentAware;
use Traits\AttributeAware;
Expand Down
2 changes: 0 additions & 2 deletions src/PhpGenerator/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
*/
final class Extractor
{
use Nette\SmartObject;

private string $code;

/** @var Node[] */
Expand Down
2 changes: 0 additions & 2 deletions src/PhpGenerator/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
*/
final class Factory
{
use Nette\SmartObject;

/** @var string[][] */
private array $bodyCache = [];

Expand Down
5 changes: 0 additions & 5 deletions src/PhpGenerator/GlobalFunction.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,12 @@

namespace Nette\PhpGenerator;

use Nette;


/**
* Global function.
*
* @property-deprecated string $body
*/
final class GlobalFunction
{
use Nette\SmartObject;
use Traits\FunctionLike;
use Traits\NameAware;
use Traits\CommentAware;
Expand Down
2 changes: 0 additions & 2 deletions src/PhpGenerator/InterfaceType.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

/**
* Interface description.
*
* @property-deprecated Method[] $methods
*/
final class InterfaceType extends ClassLike
{
Expand Down
3 changes: 0 additions & 3 deletions src/PhpGenerator/Method.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@

/**
* Class method.
*
* @property-deprecated string|null $body
*/
final class Method
{
use Nette\SmartObject;
use Traits\FunctionLike;
use Traits\NameAware;
use Traits\VisibilityAware;
Expand Down
4 changes: 0 additions & 4 deletions src/PhpGenerator/Parameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,14 @@

namespace Nette\PhpGenerator;

use Nette;
use Nette\Utils\Type;


/**
* Function/Method parameter description.
*
* @property-deprecated mixed $defaultValue
*/
class Parameter
{
use Nette\SmartObject;
use Traits\NameAware;
use Traits\AttributeAware;
use Traits\CommentAware;
Expand Down
3 changes: 0 additions & 3 deletions src/PhpGenerator/PhpFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

namespace Nette\PhpGenerator;

use Nette;


/**
* Instance of PHP file.
Expand All @@ -22,7 +20,6 @@
*/
final class PhpFile
{
use Nette\SmartObject;
use Traits\CommentAware;

/** @var PhpNamespace[] */
Expand Down
2 changes: 0 additions & 2 deletions src/PhpGenerator/PhpNamespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
*/
final class PhpNamespace
{
use Nette\SmartObject;

public const
NameNormal = 'n',
NameFunction = 'f',
Expand Down
2 changes: 0 additions & 2 deletions src/PhpGenerator/Printer.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
*/
class Printer
{
use Nette\SmartObject;

public int $wrapLength = 120;
public string $indentation = "\t";
public int $linesBetweenProperties = 0;
Expand Down
3 changes: 0 additions & 3 deletions src/PhpGenerator/Property.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@

/**
* Class property description.
*
* @property-deprecated mixed $value
*/
final class Property
{
use Nette\SmartObject;
use Traits\NameAware;
use Traits\VisibilityAware;
use Traits\CommentAware;
Expand Down
3 changes: 0 additions & 3 deletions src/PhpGenerator/TraitType.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@

/**
* Trait description.
*
* @property-deprecated Method[] $methods
* @property-deprecated Property[] $properties
*/
final class TraitType extends ClassLike
{
Expand Down
1 change: 0 additions & 1 deletion src/PhpGenerator/TraitUse.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/
final class TraitUse
{
use Nette\SmartObject;
use Traits\NameAware;
use Traits\CommentAware;

Expand Down

0 comments on commit 54881e8

Please sign in to comment.